For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_stmt_num_rows

mysql_stmt_num_rows returns the total row count of a buffered prepared statement result set; it requires mysql_stmt_store_result to have been called first.

Syntax

unsigned long long mysql_stmt_num_rows(MYSQL_STMT * stmt);

Parameter

Description

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.

Return Value

Number of rows in the result set

If you use mysql_stmt_store_result(), mysql_stmt_num_rows() may be called immediately.

See Also

spinner

Last updated

Was this helpful?