mysql\_stmt\_param\_count(3) MariaDB Connector/C mysql\_stmt\_param\_count(3)

## [Name](#Name)

mysql\_stmt\_param\_count - Returns number of parameters

## [Synopsis](#Synopsis)

```
#include <mysql.h>
unsigned long mysql_stmt_param_count(MYSQL_STMT * stmt);
    
```

## [Description](#Description)

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

## [Parameter](#Parameter)

•

stmt - a statement handle, which was previously allocated by [**mysql\_stmt\_init(3)**](/man/os/mariadb-11.8/mysql_stmt_init.3).

## [Return value](#Return_value)

The number of parameter markers in prepared statement.

## [Notes](#Notes)

•

This function will not deliver a valid result until mysql\_stmt\_prepare()() was called.

## [See Also](#See_Also)

•

mysql\_stmt\_prepare()()

•

[**mysql\_stmt\_field\_count(3)**](/man/os/mariadb-11.8/mysql_stmt_field_count.3)

Version 3.4

---

Document: mysql_stmt_param_count(3) from mariadb-11.8 11.8.3-r0 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
