---
name: "mysql_stmt_param_count"
section: "3"
platform: "linux"
package: "mariadb"
version: "13.0.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mysql_stmt_param_count"
---

# mysql\_stmt\_param\_count(3)

### 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

- •

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

### Return value

The number of parameter markers in prepared statement.

### Notes

- •

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

### See Also

- •

  mysql\_stmt\_prepare()()

- •

  **[mysql\_stmt\_field\_count(3)](/mysql_stmt_field_count/3.md)**
