MATLAB DATABASE TOOLBOX RELEASE NOTES Uživatelská příručka Strana 467

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 684
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 466
cursor.fetch
7-37
View the contents of the Data element in the cursor object.
curs.Data
ans =
'New York'
'London'
'Adelaide'
'Dublin'
'Boston'
'New York'
'Wellesley'
'Nashua'
'London'
'Belfast'
Close the cursor object.
close(curs)
Import a Specified Number of Rows
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
Zobrazit stránku 466
1 2 ... 462 463 464 465 466 467 468 469 470 471 472 ... 683 684

Komentáře k této Příručce

Žádné komentáře