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. ### Notes
|
• |
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(3). |
|
• |
mysql is a connection identifier, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3). |
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 * mysql_free_result(3) * mysql_use_result(3) * mysql_real_query(3) * mysql_field_count(3)