-
Notifications
You must be signed in to change notification settings - Fork 263
mysql_num_rows
Georg Richter edited this page Aug 15, 2018
·
1 revision
mysql_num_rows - Returns number of rows in a result set.
#include <mysql.h>
my_ulonglong mysql_num_rows(MYSQL_RES * );
Returns number of rows in a result set.
-
MYSQL_RES
- a result set identifier returned by mysql_store_result() or mysql_use_result().
The behaviour of mysql_num_rows()
depends on whether buffered or unbuffered result sets are being used. For unbuffered result sets, mysql_num_rows()
will not return the correct number of rows until all the rows in the result have been retrieved.
MariaDB Connector/C Reference