Small. Fast. Reliable.
Choose any three.
SQLite C Interface
SQL Statement Object
typedef struct sqlite3_stmt sqlite3_stmt;
An instance of this object represents a single SQL statement.
This object is variously known as a "prepared statement" or a
"compiled SQL statement" or simply as a "statement".
The life of a statement object goes something like this:
- Create the object using sqlite3_prepare_v2() or a related
function.
- Bind values to host parameters using the sqlite3_bind_*()
interfaces.
- Run the SQL by calling sqlite3_step() one or more times.
- Reset the statement using sqlite3_reset() then go back
to step 2. Do this zero or more times.
- Destroy the object using sqlite3_finalize().
Refer to documentation on individual methods above for additional
information.
See also lists of
Objects,
Constants, and
Functions.