For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_stmt_next_result

mysql_stmt_next_result advances to the next result set when a prepared statement returns multiple results, enabling traversal of multi-statement query output.

Syntax

int mysql_stmt_next_result(MYSQL_STMT * stmt);

Parameter

Description

Prepares next result set from a previous call to mysql_stmt_execute() which can be retrieved by mysql_stmt_store_result().

Return Value

Returns zero on success, -1 if there are no more result sets, and a positive value if an error occurred.

See Also

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?