MATLAB DATABASE TOOLBOX RELEASE NOTES User's Guide Page 577

  • Download
  • Add to my manuals
  • Print
  • Page
    / 684
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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')
Page view 576
1 2 ... 572 573 574 575 576 577 578 579 580 581 582 ... 683 684

Comments to this Manuals

No comments

Rosen Aviation SlimLine 1700 manuály

Uživatelské manuály a uživatelské příručky pro Televizory a monitory Rosen Aviation SlimLine 1700.
Poskytujeme 2 manuály pdf Rosen Aviation SlimLine 1700 ke stažení zdarma podle typů dokumentů: Specifikace






Další produkty a příručky pro Televizory a monitory Rosen Aviation

Modely Typ Dokumentu
WideScreen 7001 Specifikace   Rosen Aviation WideScreen 7001 Specifications, 34 stránky
SlimLine 8403 Specifikace   Rosen Aviation SlimLine 8403 Specifications, 19 stránky
Remote Display System Specifikace   Rosen Aviation Remote Display System Specifications, 24 stránky
WideScreen 1701 Series Specifikace   Rosen Aviation WideScreen 1701 Series Specifications, 16 stránky
0700-104 Specifikace   Rosen Aviation 0700-104 Specifications, 39 stránky
WideScreen 7001 Uživatelský manuál   DISPLAY - Rosen Aviation [en] , 21 stránky
Remote Display System Specifikace   Rosen Aviation Remote Display System Specifications, 43 stránky
WideScreen 7000 Uživatelský manuál   Flight Club, 3 stránky
Widescreen 2401 Series Specifikace   Rosen Aviation Widescreen 2401 Series Specifications, 37 stránky
Remote Display System Specifikace   Rosen Aviation Remote Display System Specifications [en] , 38 stránky
SlimLine 2002 Series Specifikace   Rosen Aviation SlimLine 2002 Series Specifications, 23 stránky
WideScreen 7000 Uživatelský manuál   New Products Pilots and Owners Will Want, 7 stránky
WideScreen 7001 Uživatelský manuál   inflight communications & entertainment systems, 10 stránky