Complete the code to start a transaction in MySQL.
START [1];The START TRANSACTION statement begins a new transaction in MySQL.
Complete the code to create a savepoint named 'sp1'.
SAVEPOINT [1];The SAVEPOINT statement creates a savepoint with the given name, here 'sp1'.
Fix the error in the code to rollback to the savepoint named 'sp1'.
ROLLBACK TO [1];The correct syntax to rollback to a savepoint is ROLLBACK TO sp1; where 'sp1' is the savepoint name.
Fill both blanks to declare a savepoint named 'sp2' and then release it.
SAVEPOINT [1]; RELEASE SAVEPOINT [2];
You create a savepoint with SAVEPOINT sp2; and release it with RELEASE SAVEPOINT sp2;.
Fill all three blanks to start a transaction, create a savepoint 'sp3', and rollback to it.
START [1]; SAVEPOINT [2]; ROLLBACK TO [3];
First, start the transaction with START TRANSACTION;, then create the savepoint SAVEPOINT sp3;, and rollback to it with ROLLBACK TO sp3;.