All pages
Powered by GitBook
1 of 1

Loading...

mysql_stmt_bind_param

Syntax

  • 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.

Description

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

  • The number of parameters can be obtained by .

  • If the number of parameters is unknown, for example when using , the number of parameters have to be specified with the function.

See Also

my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt,
                              MYSQL_BIND * bnd);
mysql_stmt_param_count()
  • mysql_stmt_send_long_data()

  • mysql_stmt_prepare()
    mysql_stmt_param_count()
    mariadb_stmt_execute_direct()
    mysql_stmt_attr_set()
    mariadb_stmt_execute_direct()
    mysql_stmt_prepare()
    mysql_stmt_bind_result()
    mysql_stmt_execute()