statement

ROLLBACK

Aborts the current transaction and discards transactional changes. Example target: SQLite 3.46.1. Use only the isolated starter dataset; setup and expected results are in the batch evidence.

Formal Syntax & Structure

sql syntaxsql
ROLLBACK

Working Example

Example Snippetsql
BEGIN; UPDATE orders SET amount=140 WHERE id=101;ROLLBACK;
SQL Reference