MATLAB DATABASE TOOLBOX RELEASE NOTES Guida Utente Pagina 577

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 684
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 576
fetch
7-147
close(curs)
Import Data with Different Formats Using the Cursor Object
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
After finishing with the cursor object, close it.
close(curs)
Import Data Using the Database Connection Object
fetch imports data from the specified SQL statement when you pass a database object,
conn, as the first argument. Use this example when using a JDBC/ODBC bridge or a
JDBC interface. For the native ODBC interface, use curs as the input argument.
Using the dbtoolboxdemo data source that you access using the database connection
object, conn, import the productDescription column from productTable. Set the
data return format to 'cellarray' using setdbprefs.
setdbprefs('DataReturnFormat','cellarray')
Vedere la pagina 576
1 2 ... 572 573 574 575 576 577 578 579 580 581 582 ... 683 684

Commenti su questo manuale

Nessun commento

KitchenAid KUIS15NRHT5 manuály

Uživatelské manuály a uživatelské příručky pro Mrazničky KitchenAid KUIS15NRHT5.
Poskytujeme 1 manuály pdf KitchenAid KUIS15NRHT5 ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Mrazničky KitchenAid

Modely Typ Dokumentu
KUIS15NRHW8 Uživatelský manuál   KITCHENAID KUIS15NRHW8 User Manual, 9 stránky
KUIS15PRHB5 Uživatelský manuál   KITCHENAID KUIS15PRHB5 User Manual, 8 stránky
KUIC15PRTS1 Uživatelský manuál   KITCHENAID KUIC15PRTS1 User Manual, 9 stránky
KUIS185FWH1 Uživatelský manuál   KITCHENAID KUIS185FWH1 User Manual, 8 stránky