mysql_stmt_param_count - Man Page

Name

mysql_stmt_param_count - Returns number of parameters

Synopsis

#include <mysql.h>

unsigned long mysql_stmt_param_count(MYSQL_STMT * stmt);

Description

Returns the number of parameter markers present in the prepared statement. Parameter markers are specified as ? (question mark)

Parameter

Return value

The number of parameter markers in prepared statement.

Notes

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

See Also

Referenced By

mysql_stmt_bind_param(3), mysql_stmt_field_count(3), mysql_stmt_prepare(3).

Version 3.2.2 MariaDB Connector/C