The .changes
dot command in SQLite is a helpful utility for developers working with databases, especially when tracking the number of rows affected by SQL statements like INSERT
, UPDATE
or DELETE
.
When used in the SQLite command-line interface, .changes
toggles an option that shows the count of modified rows after executing a command.
This article looks at how the .changes
command works, how it can be enabled or disabled, and provides an example to illustrate how it works.