Complete ROLLBACK
Fill in the Blank Easy
Question
Fill in the blank to undo all changes in the transaction:
Code
BEGIN;
UPDATE users SET name = 'Ada' WHERE id = 1;
-- Something went wrong!
___;
Hint
This command cancels the transaction.
Explanation
ROLLBACK undoes all changes in the current transaction. The database returns to the state before BEGIN, as if the changes never happened.
Related Resources
Related Lessons
- Transactions
Learn ROLLBACK.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.