sqlany_num_rows function

Returns the number of rows in the result set.

Syntax
sacapi_i32 sqlany_num_rows( a_sqlany_stmt * stmt )
Parameters
  • stmt   A statement object executed by sqlany_execute or sqlany_execute_direct.

Remarks

By default, this function only returns an estimate. To return an exact count, set the ROW_COUNTS option on the connection. For more information, see row_counts option [database].

Returns

The number of rows in the result set. If the number of rows is an estimate, the number returned is negative and the estimate is the absolute value of the returned integer. The value returned is positive if the number of rows is exact.

See also