xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_bind_parameter_count.3 (revision b9988867a8ad969c45a52aa7628bc932ec98d46b)
1.Dd January 24, 2024
2.Dt SQLITE3_BIND_PARAMETER_COUNT 3
3.Os
4.Sh NAME
5.Nm sqlite3_bind_parameter_count
6.Nd number of SQL parameters
7.Sh SYNOPSIS
8.In sqlite3.h
9.Ft int
10.Fo sqlite3_bind_parameter_count
11.Fa "sqlite3_stmt*"
12.Fc
13.Sh DESCRIPTION
14This routine can be used to find the number of SQL parameters
15in a prepared statement.
16SQL parameters are tokens of the form "?", "?NNN", ":AAA", "$AAA",
17or "@AAA" that serve as placeholders for values that are bound
18to the parameters at a later time.
19.Pp
20This routine actually returns the index of the largest (rightmost)
21parameter.
22For all forms except ?NNN, this will correspond to the number of unique
23parameters.
24If parameters of the ?NNN form are used, there may be gaps in the list.
25.Pp
26.Sh IMPLEMENTATION NOTES
27These declarations were extracted from the
28interface documentation at line 4699.
29.Bd -literal
30SQLITE_API int sqlite3_bind_parameter_count(sqlite3_stmt*);
31.Ed
32.Sh SEE ALSO
33.Xr sqlite3_bind_blob 3 ,
34.Xr sqlite3_bind_parameter_index 3 ,
35.Xr sqlite3_bind_parameter_name 3 ,
36.Xr sqlite3_stmt 3
37