Direction: Choose the correct option
Q1.
What is a transaction in SQL?
Direction: Choose the correct option
Q2.
START TRANSACTION; INSERT INTO accounts VALUES (1,1000); INSERT INTO accounts VALUES (2,500); COMMIT;What does COMMIT do?Direction: Choose the correct option
Q3.
START TRANSACTION; INSERT INTO accounts VALUES (3,200); ROLLBACK;What happens after ROLLBACK?Direction: Choose the correct option
Q4.
START TRANSACTION; INSERT INTO accounts VALUES (4,300); SAVEPOINT sp1; INSERT INTO accounts VALUES (5,400); ROLLBACK TO sp1; COMMIT;Which insert is kept?Direction: Choose the correct option
Q5.
What is autocommit mode?
