xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_bind_parameter_count.3 (revision d909946ca08dceb44d7d0f22ec9488679695d976)
1.Dd $Mdocdate$
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.Ft int SQLITE_STDCALL
9.Fo sqlite3_bind_parameter_count
10.Fa "sqlite3_stmt*"
11.Fc
12.Sh DESCRIPTION
13This routine can be used to find the number of SQL parameters
14in a prepared statement.
15SQL parameters are tokens of the form "?", "?NNN", ":AAA", "$AAA",
16or "@AAA" that serve as placeholders for values that are  bound
17to the parameters at a later time.
18.Pp
19This routine actually returns the index of the largest (rightmost)
20parameter.
21For all forms except ?NNN, this will correspond to the number of unique
22parameters.
23If parameters of the ?NNN form are used, there may be gaps in the list.
24.Pp
25.Sh SEE ALSO
26.Xr sqlite3_stmt 3 ,
27.Xr sqlite3_bind_blob 3 ,
28.Xr sqlite3_bind_parameter_index 3 ,
29.Xr sqlite3_bind_parameter_name 3
30