mysql_stmt_param_count(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ mysql_stmt_param_count ✨

okay so bestie, we're in the MariaDB Connector/C manual and today's main character is mysql_stmt_param_count πŸ’…


πŸ’– NAME πŸ’–

mysql_stmt_param_count β€” literally just returns the number of parameters πŸŽ€


🌸 SYNOPSIS 🌸

#include <mysql.h>

unsigned long mysql_stmt_param_count(MYSQL_STMT * stmt);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this does is: it returns the number of parameter markers that are present in the prepared statement 🫢

and in case you were wondering what a parameter marker even is β€” it's the ? (question mark) bestie, that's the whole vibe ✨


πŸŽ€ Parameter πŸŽ€

  • stmt β€” a statement handle, which was previously allocated by mysql_stmt_init(3). that's your girl, you gotta have her first πŸ’œ

🌈 Return value 🌈

the number of parameter markers in the prepared statement. that's it, that's the tea πŸ‘‘


⭐ Notes ⭐

  • this function will not deliver a valid result until mysql_stmt_prepare()() was called. no cap. don't come for her before she's ready, she needs that prepare first 😭

πŸ’€ See Also πŸ’€


and that's the whole page babes 🧚 this was Version 3.4 of the MariaDB Connector/C manual, mwah πŸ’‹ go call mysql_stmt_prepare() first fr fr πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from