mysql_stmt_num_rows — Returns the number of rows in a prepared statement result set
my_ulonglong 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.
Parameters
stmtA statement handle, which was previously allocated by mysql_stmt_init().
Return value
The number of rows in a result set of a prepared statement.
![[Note]](note.png) | |
|---|
If you use mysql_stmt_store_result(), mysql_stmt_num_rows() may be called immediately. |
See also
mysql_stmt_store_result()