mysql_prepare()
mysql_param_count()
mysql_prepare_result()
mysql_bind_param()
mysql_execute()
mysql_stmt_affected_rows()
mysql_bind_result()
mysql_stmt_store_result()
mysql_stmt_data_seek()
mysql_stmt_row_seek()
mysql_stmt_row_tell()
mysql_stmt_num_rows()
mysql_fetch()
mysql_send_long_data()
mysql_stmt_close()
mysql_stmt_errno()
mysql_stmt_error()
mysql_stmt_sqlstate()
mysql_stmt_store_result()
int mysql_stmt_store_result(MYSQL_STMT *stmt)
You must call mysql_stmt_store_result()
for every query that
successfully produces a result set
(SELECT
, SHOW
, DESCRIBE
, EXPLAIN
), and only
if you want to buffer the complete result set by the client, so that the
subsequent mysql_fetch()
call returns buffered data.
It is unnecessary to call mysql_stmt_store_result()
for other
queries, but if you do, it will not harm or cause any notable performance in all
cases. You can detect whether the query produced a result set by checking
if mysql_prepare_result()
returns NULL
. For more information, refer
to section 9.1.7.3 mysql_prepare_result()
.
Zero if the results are buffered successfully. Non-zero if an error occurred.
CR_COMMANDS_OUT_OF_SYNC
CR_OUT_OF_MEMORY
CR_SERVER_GONE_ERROR
CR_SERVER_LOST
CR_UNKNOWN_ERROR