1mysql_stmt_execute(3)         MariaDB Connector/C        mysql_stmt_execute(3)
2
3
4
5   Name
6       mysql_stmt_execute - Executes a prepared statement
7
8   Synopsis
9              #include <mysql.h>
10
11              int mysql_stmt_execute(MYSQL_STMT * stmt);
12
13   Description
14       Executes   a  prepared  statement  which  was  previously  prepared  by
15       mysql_stmt_prepare(3).  When executed any parameter markers which exist
16       will automatically be replaced with the appropriate data.
17
18   Parameter
19       • stmt  -  A  statement  handle,  which  was  previously  allocated  by
20         mysql_stmt_init(3).
21
22   Return value
23       Returns zero on success, non-zero on failure.
24
25   Notes
26       • If the statement is UPDATE, REPLACE, DELETE or INSERT, the total num‐
27         ber  of  affected  rows can be determined by using the mysql_stmt_af‐
28         fected_rows(3) function.  Likewise, if the query yields a result  set
29         the mysql_stmt_fetch(3) function is used.
30
31   See Also
32mariadb_stmt_execute_direct(3)
33
34mysql_stmt_prepare(3)
35
36mysql_stmt_bind_param(3)
37
38
39
40Version 3.3.1                                            mysql_stmt_execute(3)
Impressum