dbcursorinfo

Description

Return the number of columns and the number of rows in the keyset if the keyset hit the end of the result set.

Syntax

RETCODE dbcursorinfo(hcursor, ncols, nrows);
 
DBCURSOR    *hcursor;
DBINT              *ncols
DBINT               *nrows;

Parameters

hcursor

Cursor handle created by dbcursoropen.

ncols

Location where the number of columns in the cursor is returned.

nrows

Location where the number of rows in the keyset is returned.

Returns

SUCCEED or FAIL.

Usage

See also

dbcursor, dbcursorbind, dbcursorclose, dbcursorcolinfo, dbcursorfetch, dbcursoropen