Undo uncommitted changes.
Section: Transactions and savepoints
Roll back a transaction
sql
sql
ROLLBACK;Explanation
A safety valve when a migration, import, or manual edit goes wrong.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Transactions and savepoints