FreeBSD manual

download PDF document: mysql_stmt_bind_result.3.pdf

mysql_stmt_bind_result(3) MariaDB Connector/C mysql_stmt_bind_result(3)
Name mysql_stmt_bind_result - binds result columns to variables
Synopsis
#include <mysql.h>
my_bool mysql_stmt_bind_result(MYSQL_STMT * stmt, MYSQL_BIND * bind);

Description Binds columns in the result set to variables. Returns zero on success, non-zero on failure.
Parameters o stmt - a statement handle, which was previously allocated by mysql_stmt_init(3).
o bind - an array of [MYSQL_BIND]] structures. The size of this array must be equal to the number of columns in result set.
Notes o To determine the number of columns in result set use mysql_stmt_field_count(3).
o A column can be bound or rebound at any time, even after a result set has been partially retrieved. The new binding takes effect the next time mysql_stmt_fetch(3) is called.
See Also o mysql_stmt_field_count(3)
o mysql_stmt_execute(3)
o mysql_stmt_fetch(3)
Version 3.3.1 mysql_stmt_bind_result(3)