Name

sqlite3_reset() — Reset of prepared statement

Definition

int sqlite3_reset( sqlite3_stmt* stmt );
stmt

A prepared statement.

Returns

An SQLite result code.

Description

This function resets a prepared statement, making it available for execution. This is typically done after one or more calls to sqlite3_step(). The reset call will release any locks and other resources associated with the last execution of the statement. This function may be called any time between calls to sqlite3_prepare_xxx() and sqlite3_finalize().

This function does not clear the statement parameter bindings. An application must call sqlite3_clear_bindings() to reset the statement parameters to NULL.

See Also

sqlite3_prepare_xxx(), sqlite3_step(), sqlite3_finalize(), sqlite3_clear_bindings()