Name
sqlite3_bind_parameter_name() — Get the name of a statement parameter
Definition
const char* sqlite3_bind_parameter_name( sqlite3_stmt* stmt, int pidx );
-
stmt
A prepared statement that contains parameter values.
-
pidx
The parameter index. The first parameter has an index of one (
1
).- Returns
The text representation of the statement parameter with the given index.
Description
This function looks up the original string representation of a
statement parameter. This is most frequently used with named
parameters, but works correctly for any explicit parameter type.
The string will be UTF-8 encoded, and will include the prefix
character (e.g., the parameter :val
will return :val
, not val
). The return value will be NULL if the
parameter index is invalid, or if the parameter is an automatic
parameter (a bare ?
).
Get Using SQLite now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.