Name
sqlite3_bind_parameter_index() — Get the index of a named statement parameter
Definition
int sqlite3_bind_parameter_index( sqlite3_stmt* stmt, const char *name );
-
stmt A prepared statement that contains parameter values.
-
name The parameter name, including prefix character. The name must be given in UTF-8.
- Returns
The index of the named parameter. If the name is not found, zero will be returned.
Description
This function finds the index value of a named statement
parameter. The returned value can be safely passed to an
sqlite3_bind_xxx()
function (although those functions may return SQLITE_RANGE if the name is not
found).
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