1mysql_next_result(3) MariaDB Connector/C mysql_next_result(3)
2
3
4
5 Name
6 mysql_next_result - prepares next result set
7
8 Synopsis
9 #include <mysql.h>
10
11 int mysql_next_result(MYSQL * mysql);
12
13 Description
14 Prepares next result set from a previous call to mysql_real_query(3)
15 which can be retrieved by mysql_store_result(3) or [mysql_use_re‐
16 sult()](()](mysql_use_result). Returns zero on success, nonzero if an
17 error occurred.
18
19 Parameter
20 • mysql - a mysql handle, which was previously allocated by
21 mysql_init(3) and connected by mysql_real_connect(3).
22
23 Notes
24 • If a multi query contains errors the return value of mysql_errno(3)
25 and mysql_error(3) might change and there will be no result set
26 available.
27
28 Return value
29 Returns zero on success, non zero value on error.
30
31 See also
32 • mysql_real_query(3)
33
34 • mysql_store_result(3)
35
36 • mysql_use_result(3)
37
38 • mysql_more_results(3)
39
40
41
42Version 3.3.1 mysql_next_result(3)