MATLAB DATABASE TOOLBOX RELEASE NOTES Guide de l'utilisateur Page 572

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 684
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 571
7 Functions — Alphabetical List
7-142
'London'
'Adelaide'
'Dublin'
'Boston'
'New York'
'Wellesley'
'Nashua'
'London'
'Belfast'
After finishing with the cursor object, close it.
close(curs)
Import Specified Rows Using the Cursor Object
Working with the dbtoolboxdemo data source, use the rowlimit argument to retrieve
only the first three rows of data.
curs = exec(conn,'select productdescription from producttable');
curs = fetch(curs,3)
curs =
Attributes: []
Data: {3x1 cell}
DatabaseObject: [1x1 database]
RowLimit: 0
SQLQuery: 'select productdescription from producttable'
Message: []
Type: 'Database Cursor Object'
ResultSet: [1x1 sun.jdbc.odbc.JdbcOdbcResultSet]
Cursor: [1x1 com.mathworks.toolbox.database.sqlExec]
Statement: [1x1 sun.jdbc.odbc.JdbcOdbcStatement]
Fetch: [1x1 com.mathworks.toolbox.database.fetchTheData]
View the data.
curs.Data
ans =
'Victorian Doll'
'Train Set'
'Engine Kit'
Vue de la page 571
1 2 ... 567 568 569 570 571 572 573 574 575 576 577 ... 683 684

Commentaires sur ces manuels

Pas de commentaire