MATLAB DATABASE TOOLBOX RELEASE NOTES Guia do Utilizador Página 572

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 684
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 571
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'
Vista de página 571
1 2 ... 567 568 569 570 571 572 573 574 575 576 577 ... 683 684

Comentários a estes Manuais

Sem comentários