Rollback on mistake
SQL
Easy
3 views
Problem Description
You accidentally updated all employees salary. Rollback the transaction.
Constraints
Must be inside an open transaction
Official Solution
BEGIN; UPDATE Employees SET salary = salary * 2; ROLLBACK;
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!