1mysql_stmt_bind_param(3) MariaDB Connector/C mysql_stmt_bind_param(3)
2
3
4
5 Name
6 mysql_stmt_bind_param - Binds parameter to a prepared statement
7
8 Synopsis
9 #include <mysql.h>
10
11 my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt,
12 MYSQL_BIND * bind);
13
14 Description
15 Binds variables for parameter markers in the prepared statement that
16 was passed to mysql_stmt_prepare(3). Returns zero on success, non-zero
17 on failure.
18
19 Parameters
20 • stmt - a statement handle, which was previously allocated by
21 mysql_stmt_init(3).
22
23 • bind - an array of MYSQL_BIND structures. The size of this array
24 must be equal to the number of parameters.
25
26 Notes
27 • The number of parameters can be obtained by
28 mysql_stmt_param_count(3).
29
30 • If the number of parameters is unknown, for example when using mari‐
31 adb_stmt_execute_direct(3), the number of parameters have to be spec‐
32 ified with the mysql_stmt_attr_set(3) function.
33
34 See Also
35 • mariadb_stmt_execute_direct(3)
36
37 • mysql_stmt_prepare(3)
38
39 • mysql_stmt_bind_result(3)
40
41 • mysql_stmt_execute(3)
42
43 • mysql_stmt_param_count(3)
44
45 • mysql_stmt_send_long_data(3)
46
47
48
49Version 3.2.2 mysql_stmt_bind_param(3)