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

mysql_store_result

mysql_store_result retrieves a complete buffered result set from the last executed MariaDB query, returning NULL on error or for non-SELECT statements.

Syntax

MYSQL_RES * mysql_store_result(MYSQL * mysql);

Parameter

Description

Returns a buffered result set from the last executed query.

Return Value

Returns a buffered result set or NULL in case an error occurred or if the query didn't return data (e.g. when executing an INSERT, UPDATE, DELETE or REPLACE statement).

mysql_store_result() returns NULL in case an error occurred or if the query didn't return data (e.g. when executing an INSERT or UPDATE query.

mysql_field_count() indicates if there will be a result set available.

The memory allocated by mysql_store_result() needs to be released by calling the function mysql_free_result().

See Also

spinner

Last updated

Was this helpful?