rows - Return number of rows in fetched data set

Syntax

numrows = rows(curs)

Description

numrows = rows(curs) returns the number of rows in the fetched data set curs.

Examples

There are four rows in the fetched data set curs.

numrows = rows(curs)

numrows =
     4

To see the four rows of data in curs, run:

curs.Data
ans = 
    'Germany'
    'Mexico'
    'France'
    'Canada'

See Also

cols, cursor.fetch, get, rsmd

  


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