mysql_stmt_prepare
mysql_stmt_prepare parses and prepares a SQL statement on a Connector/C MYSQL_STMT handle; parameter markers must be bound with mysql_stmt_bind_param before execution.
Syntax
int mysql_stmt_prepare(MYSQL_STMT * stmt,
const char * query,
unsigned long length);Parameter
stmt- a statement handle, which was previously allocated by mysql_stmt_init().query- SQL statementlength- length of SQL statement
Description
Prepares the SQL query pointed to by the null-terminated string query.
Return Value
Returns zero on success, non-zero on failure.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

