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

  • 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 469
7 Functions — Alphabetical List
7-40
ans =
13
5
16
Close the cursor object.
close(curs)
Import Boolean Data
Import data that includes a BOOLEAN field, using the setdbprefs function to specify
cellarray as the format for the retrieved data.
curs = exec(conn,['select InvoiceNumber, '...
'Paid from Invoice']);
setdbprefs('DataReturnFormat','cellarray')
curs = fetch(curs,5);
A = curs.Data
A =
[ 2101] [0]
[ 3546] [1]
[33116] [1]
[34155] [0]
[34267] [1]
View the class of the second column of A.
class(A{1,2})
ans =
logical
Close the cursor object.
close(curs)
Perform Incremental Fetch
Working with the dbtoolboxdemo data source, retrieve data incrementally to
avoid Java heap errors. Use cursor.fetch with the setdbprefs properties for
FetchInBatches and FetchBatchSize to fetch large data sets.
Vue de la page 469
1 2 ... 465 466 467 468 469 470 471 472 473 474 475 ... 683 684

Commentaires sur ces manuels

Pas de commentaire