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
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
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).
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

