Skip to content

mysql_stmt_bind_param

Georg Richter edited this page Aug 31, 2018 · 3 revisions

Name

mysql_stmt_bind_param - Binds parameter to a prepared statement

Synopsis

#include <mysql.h>

my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt,
                              MYSQL_BIND * bind);

Description

Binds variables for parameter markers in the prepared statement that was passed to mysql_stmt_prepare(). Returns zero on success, non-zero on failure.

Parameters

  • stmt - a statement handle, which was previously allocated by mysql_stmt_init().
  • bind - an array of MYSQL_BIND structures. The size of this array must be equal to the number of parameters.

Notes

See Also

Clone this wiki locally