1mysql_stmt_close(3)           MariaDB Connector/C          mysql_stmt_close(3)
2
3
4
5   Name
6       mysql_stmt_close - Closes a prepared statement
7
8   Synopsis
9              #include <mysql.h>
10
11              my_bool mysql_stmt_close(MYSQL_STMT * stmt);
12
13   Description
14       Closes  a  prepared statement and deallocates the statement handle.  If
15       the current statement has pending or unread results, this function can‐
16       cels them so that the next query can be executed.
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, nonzero on error (when communicating with  the
24       server).  The statement is deallocated, regardless of the error.
25
26   Notes
27       • If  you  want to reuse the statement handle with a different SQL com‐
28         mand, use mysql_stmt_reset(3).
29
30   See Also
31mysql_stmt_init(3)
32
33mysql_stmt_reset(3)
34
35
36
37Version 3.3.1                                              mysql_stmt_close(3)
Impressum