Complete the code to start a transaction in SQL.
[1];The BEGIN TRANSACTION statement starts a new transaction block in SQL.
Complete the code to start a transaction and ensure changes can be undone if needed.
[1]; -- start transactionBEGIN TRANSACTION starts the transaction so changes can be committed or rolled back later.
Fix the error in this SQL code that tries to start a transaction.
BEGIN [1];The correct syntax to start a transaction is BEGIN TRANSACTION.
Fill both blanks to correctly start and then commit a transaction.
[1]; -- some SQL statements [2];
First, start the transaction with BEGIN TRANSACTION. After your SQL statements, use COMMIT TRANSACTION to save changes.
Fill all three blanks to start a transaction, create a savepoint, and then rollback to it.
[1]; SAVEPOINT [2]; ROLLBACK TO [3];
Start with BEGIN TRANSACTION. Then create a savepoint named sp1. Finally, rollback to that savepoint using its name.