Skip to content

mysql_stmt_store_result

Georg Richter edited this page Aug 31, 2018 · 1 revision

Name

mysql_stmt_store_result - Transfers a result set from a prepared statement

Synopsis

#include <mysql.h>

int mysql_stmt_store_result(MYSQL_STMT * stmt);

Description

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

Parameter

Return value

Returns zero on success, nonzero if an error occurred.

Notes

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

See Also

Clone this wiki locally