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).
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.