Get original SQL query from prepared statement in SQLite

前端 未结 3 1295
粉色の甜心
粉色の甜心 2020-12-20 18:12

I\'m using SQLite (3.6.4) from a C++ application (using the standard C api). My question is: once a query has been prepared, using sqlite3_prepare_v2(), and bou

3条回答
  •  不知归路
    2020-12-20 18:26

    You probably want to use sqlite3_trace

    This will call a callback function (that you define) and on of the parameters is a char * of the SQL of the prepared statements (including bound parameters).

提交回复
热议问题