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 ?).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access