mysql_stmt_init
mysql_stmt_init allocates and initializes a MYSQL_STMT prepared statement handle for a Connector/C connection, returning NULL if memory allocation fails.
Syntax
MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);Parameter
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
Initializes and allocates memory for a prepared statement.
Return Value
Returns a pointer to a MYSQL_STMT structure or NULL if an error occurred.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

