All pages
Powered by GitBook
1 of 1

Loading...

mysql_stmt_store_result

Syntax

int mysql_stmt_store_result(MYSQL_STMT * stmt);
  • stmt - a statement handle, which was previously allocated by mysql_stmt_init().

Description

You must call mysql_stmt_store_result() for every query that successfully produces a result set (, , , ), and only if you want to buffer the complete result set by the client, so that the subsequent call returns buffered data.

Returns zero on success, nonzero if an error occurred.

You can detect whether the statement produced a result set by checking the return value of function.

See Also

mysql_stmt_fetch()
mysql_stmt_result_metadata()
mysql_stmt_result_metadata()
mysql_stmt_fetch()
SELECT
SHOW
DESCRIBE
EXPLAIN