Undo work after the named savepoint while keeping the transaction open.
Section: Transactions, Savepoints, and Locking
Rollback to savepoint
sql
sql
ROLLBACK TO SAVEPOINT before_step_two;Explanation
See summary for usage details.
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, Savepoints, and Locking