summaryrefslogtreecommitdiffstats
path: root/libmariadb/man/mysql_num_rows.3
blob: c4c25d84e4c8ce88afd66f15e6836be9dbd790e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.\" Automatically generated by Pandoc 2.5
.\"
.TH "mysql_num_rows" "3" "" "Version 3.3.1" "MariaDB Connector/C"
.hy
.SS Name
.PP
mysql_num_rows \- Returns number of rows in a result set.
.SS Synopsis
.IP
.nf
\f[C]
#include <mysql.h>

my_ulonglong mysql_num_rows(MYSQL_RES * );
\f[R]
.fi
.SS Description
.PP
Returns number of rows in a result set.
.SS Parameters
.IP \[bu] 2
\f[C]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[C]mysql_num_rows()\f[R] depends on whether
buffered or unbuffered result sets are being used.
For unbuffered result sets, \f[C]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]