.\" Automatically generated by Pandoc 3.5 .\" .TH "mysql_num_rows" "3" "" "Version 3.3" "MariaDB Connector/C" .SS Name mysql_num_rows \- Returns number of rows in a result set. .SS Synopsis .IP .EX #include \f[B]\f[R] my_ulonglong mysql_num_rows(MYSQL_RES * ); .EE .SS Description Returns number of rows in a result set. .SS Parameters .IP \[bu] 2 \f[CR]MYSQL_RES\f[R] \- a result set identifier returned by \f[B]mysql_store_result(3)\f[R] or \f[B]mysql_use_result(3)\f[R]. ### Notes The behaviour of \f[CR]mysql_num_rows()\f[R] depends on whether buffered or unbuffered result sets are being used. For unbuffered result sets, \f[CR]mysql_num_rows()\f[R] will not return the correct number of rows until all the rows in the result have been retrieved. .SS See also .IP \[bu] 2 \f[B]mysql_affected_rows(3)\f[R] .IP \[bu] 2 \f[B]mysql_use_result(3)\f[R] .IP \[bu] 2 \f[B]mysql_store_result(3)\f[R]