-
Notifications
You must be signed in to change notification settings - Fork 259
mysql_stmt_num_rows
Georg Richter edited this page Aug 31, 2018
·
1 revision
mysql_stmt_num_rows - Returns number of rows in a prepared statement result set
#include <mysql.h>
unsigned long long mysql_stmt_num_rows(MYSQL_STMT * stmt);
Returns the number of rows in the result set. The use of mysql_stmt_num_rows() depends on whether or not you used mysql_stmt_store_result() to buffer the entire result set in the statement handle.
-
stmt
- a statement handle, which was previously allocated by mysql_stmt_init().
Number of rows in the result set
- If you use mysql_stmt_store_result(), mysql_stmt_num_rows() may be called immediately.
MariaDB Connector/C Reference