Products & Services Solutions Academia Support User Community Company

Learn more about Database Toolbox   

cols - Retrieve number of columns in fetched data set

Syntax

numcols = cols(curs)

Description

numcols = cols(curs) returns the number of columns in the fetched data set curs.

Examples

Display three columns in the fetched data set curs.

numcols = cols(curs)

numcols =
     3

See Also

attr, columnnames, columnprivileges, columns, cursor.fetch, get, rows, width

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS