standard.db.sql.ODBCCountRows

ODBCCountRows is available since version 1.0.

Prototype:

number ODBCCountRows(number statement)

Parameters

statement
[in] the statement handle (or result set) as returned by ODBCStatement, ODBCListTables, ODBCListColumns, ODBCListTypes or ODBCExecuteQuery

Description:

Get the number of rows in the current result set.

Return value:

Returns -1 if failed (call ODBCError to retrieve the error) or the number of the rows in the given result set if succeeded.