Products & Services Solutions Academia Support User Community Company

Learn more about Database Toolbox   

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, where curs has been generated by the cursor.fetch function.

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

  


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