.\" Automatically generated by Pandoc 2.5 .\" .TH "mysql_stmt_num_rows" "3" "" "Version 3.2.2" "MariaDB Connector/C" .hy .SS Name .PP mysql_stmt_num_rows \- Returns number of rows in a prepared statement result set .SS Synopsis .IP .nf \f[C] #include unsigned long long mysql_stmt_num_rows(MYSQL_STMT * stmt); \f[R] .fi .SS Description .PP Returns the number of rows in the result set. The use of mysql_stmt_num_rows() depends on whether or not you used \f[B]mysql_stmt_store_result(3)\f[R] to buffer the entire result set in the statement handle. .SS Parameter .IP \[bu] 2 \f[C]stmt\f[R] \- a statement handle, which was previously allocated by \f[B]mysql_stmt_init(3)\f[R]. .SS Return value .PP Number of rows in the result set .SS Notes .IP \[bu] 2 If you use \f[B]mysql_stmt_store_result(3)\f[R], mysql_stmt_num_rows() may be called immediately. .SS See Also .IP \[bu] 2 \f[B]mysql_stmt_store_result(3)\f[R]