MATLAB DATABASE TOOLBOX RELEASE NOTES Guide de l'utilisateur Page 494

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 684
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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:
Vue de la page 493
1 2 ... 489 490 491 492 493 494 495 496 497 498 499 ... 683 684

Commentaires sur ces manuels

Pas de commentaire