mysql_num_rows
mysql_num_rows returns the number of rows in a MariaDB result set; for unbuffered results the count is only accurate after all rows have been fetched.
Syntax
my_ulonglong mysql_num_rows(MYSQL_RES * );Parameter
MYSQL_RES- a result set identifier returned by mysql_store_result() or mysql_use_result().
Description
Returns number of rows in a result set.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

