User`s guide

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'