mysql_stmt_param_count
mysql_stmt_param_count reports how many placeholder parameters a prepared statement contains, indicating the size of the MYSQL_BIND array required for binding.
Syntax
unsigned long mysql_stmt_param_count(MYSQL_STMT * stmt);Parameter
stmt- a statement handle, which was previously allocated by mysql_stmt_init().
Description
Returns the number of parameter markers present in the prepared statement. Parameter markers are specified as ? (question mark)
Return Value
The number of parameter markers in prepared statement.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

