User`s guide

7 Functions — Alphabetical List
7-248
curs = fetch(curs);
curs.Data
ans =
[ 1] [ 1700] [14.5000] '2014-10-20 00:00...'
[ 2] [ 1200] [ 9.3000] '2014-10-20 00:00...'
[ 3] [ 356] [17.2000] '2014-10-20 00:00...'
...
The first product has the old price of 14.50.
After finishing with the cursor object, close it.
close(curs)
Close the database connection.
close(conn)
Input Arguments
conn — Database connection
database connection object
Database connection, specified as a database connection object created using database.
tablename — Database table name
string
Database table name, specified as a string denoting the name of a table in your database.
Data Types: char
colnames — Database table column names
cell array of strings
Database table column names, specified as a cell array of one or more strings to denote
the columns in the existing database table tablename.
Example: {'col1','col2','col3'}
Data Types: cell