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

See Also

sqlite3_bind_xxx(), sqlite3_bind_parameter_name()