MySQL 8.0 C API Developer Guide

6.4.19 mysql_stmt_param_count()

unsigned long
mysql_stmt_param_count(MYSQL_STMT *stmt)

Description

Returns the number of parameter markers present in the prepared statement.

Return Values

An unsigned long integer representing the number of parameters in a statement.

Errors

None.

Example

See the Example in Section 6.4.10, “mysql_stmt_execute()”.