1mysql_num_rows(3)             MariaDB Connector/C            mysql_num_rows(3)
2
3
4
5   Name
6       mysql_num_rows - Returns number of rows in a result set.
7
8   Synopsis
9              #include <mysql.h>
10
11              my_ulonglong mysql_num_rows(MYSQL_RES * );
12
13   Description
14       Returns number of rows in a result set.
15
16   Parameters
17       • MYSQL_RES - a result set identifier returned by mysql_store_result(3)
18         or mysql_use_result(3).  ### Notes The behaviour of  mysql_num_rows()
19         depends on whether buffered or unbuffered result sets are being used.
20         For unbuffered result sets, mysql_num_rows() will not return the cor‐
21         rect  number  of  rows until all the rows in the result have been re‐
22         trieved.
23
24   See also
25mysql_affected_rows(3)
26
27mysql_use_result(3)
28
29mysql_store_result(3)
30
31
32
33Version 3.3.1                                                mysql_num_rows(3)
Impressum