Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Remove matching rows with `DELETE`, then query the remaining table contents.
Remove rows from one table when a matching row exists in another table using a subquery.
Use `BEGIN`, `COMMIT`, and `ROLLBACK` to execute multiple statements as an atomic unit.
Add new data to a table, then verify the inserted row with a deterministic query.
Add several rows in one statement using a multi-value `INSERT`.
Atomically insert a row if it does not exist or update it if it does, using the database's native conflict-resolution syntax.
Modify existing rows with `UPDATE`, then verify the changed data with a stable query.
Use a join inside an `UPDATE` statement to copy or derive values from a related table.