-
Notifications
You must be signed in to change notification settings - Fork 257
mysql_store_result
Georg Richter edited this page Jul 3, 2022
·
3 revisions
mysql_store_result - returns a buffered result set
#include <mysql.h>
MYSQL_RES * mysql_store_result(MYSQL * mysql);
Returns a buffered resultset from the last executed 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().
-
mysql
is a connection identifier, which was previously allocated by mysql_init() and connected by mysql_real_connect().
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).
MariaDB Connector/C Reference