使用C API获取SQLite语句的受影响行数

时间:2022-05-07 22:55:36

I'm executing a DELETE statement using the SQLite 3 C API, and I'd like to know how to fetch the number of affected rows.

我正在使用SQLite 3 C API执行DELETE语句,我想知道如何获取受影响的行数。

Unfortunately, there is no function such as sqlite3_affected_rows or similar.

不幸的是,没有诸如sqlite3_affected_rows之类的功能。

1 个解决方案

#1


14  

Try sqlite3_changes() and/or sqlite3_total_changes()

尝试sqlite3_changes()和/或sqlite3_total_changes()

#1


14  

Try sqlite3_changes() and/or sqlite3_total_changes()

尝试sqlite3_changes()和/或sqlite3_total_changes()