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

  


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