Complete the code to start a transaction in MySQL.
START [1];In MySQL, to begin a transaction, you use START TRANSACTION.
Complete the code to save changes permanently in a transaction.
[1];Use COMMIT to save all changes made in the current transaction permanently.
Fix the error in the code to undo changes in a transaction.
[1];To undo changes made in a transaction, use ROLLBACK.
Fill both blanks to create a savepoint and then rollback to it.
SAVEPOINT [1]; ROLLBACK TO [2];
You name the savepoint and rollback to the same name to undo changes after that point.
Fill the two blanks to demonstrate atomicity by starting a transaction, inserting a row, and committing.
START [1]; INSERT INTO users (name) VALUES ('Alice'); [2];
Start the transaction and commit to make the INSERT permanent. This demonstrates atomicity: either all changes succeed or none do.
