mysql_next_result(3) MariaDB Connector/C mysql_next_result(3)

mysql_next_result - prepares next result set

#include <mysql.h>
int mysql_next_result(MYSQL * mysql);

Prepares next result set from a previous call to mysql_real_query(3) which can be retrieved by mysql_store_result(3) or [mysql_use_result()](()](mysql_use_result). Returns zero on success, nonzero if an error occurred.

mysql - a mysql handle, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3).

If a multi query contains errors the return value of mysql_errno(3) and mysql_error(3) might change and there will be no result set available.

Returns zero on success, non zero value on error.

mysql_real_query(3)
mysql_store_result(3)
mysql_use_result(3)
mysql_more_results(3)
Version 3.4