Home | Previous Page | Next Page   Descriptor Function Reference > Accessor Functions >

mi_scan_nprojs()

The mi_scan_nprojs() function returns a value that is 1 less than the number of columns in a query projection.

Syntax

mi_integer  mi_scan_nprojs(MI_AM_SCAN_DESC *scanDesc) 
scanDesc
points to the scan descriptor.

Usage

Use the return value from this function to determine the number of times to loop through the related mi_scan_projs() function.

The mi_scan_nprojs() function returns 2 to indicate that the following SELECT statement projects three columns:

SELECT column1, column2, column3 FROM table

Return Values

The integer return value indicates the number of columns that the SELECT clause of a query specifies.

Related Topics

See the description of accessor function mi_scan_projs().

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]