Small. Fast. Reliable.
Choose any three.

SQLite C 接口

Retrieving Statement SQL

const char *sqlite3_sql(sqlite3_stmt *pStmt);

This interface can be used to retrieve a saved copy of the original SQL text used to create a prepared statement if that statement was compiled using either sqlite3_prepare_v2() or sqlite3_prepare16_v2().

另行参见ObjectsConstantsFunctions的列表。
See also lists of Objects, Constants, and Functions.