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

mysql_read_query_result

mysql_read_query_result reads the result of a statement previously sent with mysql_send_query, and must be called once for each successful mysql_send_query call.

Syntax

int mysql_read_query_result(MYSQL * mysql);

Parameter

Description

mysql_read_query_result() reads the result of a SQL statement executed with mysql_send_query(). If the SQL statement returned a result set, it must be freed before the next call to mysql_read_query_result() is made. This is similar to how results from mysql_query() must be processed before another call can be made.

Return Value

Returns zero on success, otherwise non-zero.

Example

For an example how to use mysql_send_query() in an event driven model, please check Jan Kneschke's Blog entry "Async MySQL Queries with C-API".

See Also

spinner

Last updated

Was this helpful?