Complete the code to check if auto-commit is enabled.
SHOW VARIABLES LIKE '[1]';
The variable autocommit shows if auto-commit is enabled in the database.
Complete the SQL command to disable auto-commit for the current session.
SET SESSION [1] = 0;
To disable auto-commit, set autocommit to 0 for the session.
Fix the error in the SQL command to commit a transaction.
[1];The correct command to commit a transaction is simply COMMIT.
Fill both blanks to start a transaction and then disable auto-commit.
START [1]; SET [2] = 0;
Use START TRANSACTION to begin a transaction and set autocommit to 0 to disable auto-commit.
Fill all three blanks to create a transaction, insert a row, and commit the changes.
BEGIN [1]; INSERT INTO users (name) VALUES ('Alice'); [2]; [3];
Use BEGIN TRANSACTION or START TRANSACTION to begin, then COMMIT to save changes.
