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

  • 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 487
7 Functions — Alphabetical List
7-58
Output Arguments
results
A cell array, table, dataset array, structure, or numeric matrix depending on
specifications set by setdbprefs.
Examples
Import Data
Import the productDescription column from the productTable table in the
dbtoolboxdemo database.
conn = database('dbtoolboxdemo','','');
setdbprefs('DataReturnFormat','cellarray')
results = fetch(conn,'select productdescription from producttable')
results =
'Victorian Doll'
'Train Set'
'Engine Kit'
'Painting Set'
'Space Cruiser'
'Building Blocks'
'Tin Soldier'
'Sail Boat'
'Slinky'
'Teddy Bear'
If you experience speed and memory issues, use the fetchbatchsize argument.
View the size of the cell array into which the results were returned.
size(results)
ans =
Vue de la page 487
1 2 ... 483 484 485 486 487 488 489 490 491 492 493 ... 683 684

Commentaires sur ces manuels

Pas de commentaire