SQLite CHANGES() Function
Example
Update some products, and see how many rows were changed:
UPDATE Products SET Price = Price + 1
WHERE CategoryID = 1;
SELECT CHANGES();
Try it Yourself »
Definition and Usage
The CHANGES() function returns the number of rows that were inserted, updated or deleted by the most recent INSERT, UPDATE or DELETE statement in the same connection.
Tip: Also look at TOTAL_CHANGES().
Syntax
CHANGES()
Technical Details
| Return type: | Integer |
|---|