User`s guide

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