Lesson 32 of 32100%
(Progress persistence is disabled until Phase 9)
SQL
Beginner
Transactions
Ensuring data integrity.
Transactions
Ensuring data integrity.
Example
-- Begin and rollback a transaction
BEGIN TRANSACTION;
DELETE FROM users;
ROLLBACK;
SELECT * FROM users;
Test it Yourself