For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

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.

This function will not deliver a valid result until mysql_stmt_prepare() was called.

See Also

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?