Small. Fast. Reliable.
Choose any three.
Search for:

SQLite C Interface

Total Number Of Rows Modified

int sqlite3_total_changes(sqlite3*);

R-65438-26258:[This function returns the total number of rows inserted, modified or deleted by all INSERT, UPDATE or DELETE statements completed since the database connection was opened, including those executed as part of trigger programs. ] R-61766-15253:[Executing any other type of SQL statement does not affect the value returned by sqlite3_total_changes(). ]

R-36043-10590:[Changes made as part of foreign key actions are included in the count, but those made as part of REPLACE constraint resolution are not. ] R-54872-08741:[Changes to a view that are intercepted by INSTEAD OF triggers are not counted. ]

See also the sqlite3_changes() interface, the count_changes pragma, and the total_changes() SQL function.

If a separate thread makes changes on the same database connection while sqlite3_total_changes() is running then the value returned is unpredictable and not meaningful.

See also lists of Objects, Constants, and Functions.