Result.Count (gb.db2)
Property Read Count As Integer
Returns the number of rows in the query result.
The record count is returned if,
and only if:
-
the dbms,
-
the dbms driver,
-
the driver interface and
-
the Gambas interface
all support returning row counts
for the specific SQL query executed.
ODBC connections may be unable to get the record count, depending on the underlying ODBC driver.
In that case, the -1
value is returned.