MATLAB DATABASE TOOLBOX RELEASE NOTES Guida Utente Pagina 572

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 684
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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'
Vedere la pagina 571
1 2 ... 567 568 569 570 571 572 573 574 575 576 577 ... 683 684

Commenti su questo manuale

Nessun commento