MATLAB DATABASE TOOLBOX RELEASE NOTES User's Guide Page 494

  • Download
  • Add to my manuals
  • Print
  • Page
    / 684
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 493
7 Functions — Alphabetical List
7-64
sqlquery = 'select * from productTable';
dbds = datastore(conn,sqlquery)
dbds =
DatabaseDatastore with properties:
Connection: [1x1 database.ODBCConnection]
Cursor: [1x1 database.ODBCCursor]
Query: 'select * from productTable'
datastore executes the SQL query sqlquery and creates a cursor object with the
resulting data. dbds contains these properties:
Database connection object
Database cursor object
Executed SQL query
Display the database connection property Connection.
dbds.Connection
ans =
ODBCConnection with properties:
Instance: 'MySQL'
UserName: 'username'
Message: []
Handle: [1x1 database.internal.ODBCConnectHandle]
TimeOut: 0
AutoCommit: 0
Type: 'ODBCConnection Object'
The Message property is blank when the database connection is successful.
Display the database cursor property Cursor.
dbds.Cursor
ans =
ODBCCursor with properties:
Page view 493
1 2 ... 489 490 491 492 493 494 495 496 497 498 499 ... 683 684

Comments to this Manuals

No comments