Bird
0
0

Which of the following is the correct way to start a transaction in SQL?

easy📝 Syntax Q12 of 15
SQL - Transactions and Data Integrity
Which of the following is the correct way to start a transaction in SQL?
AOPEN TRANSACTION;
BCREATE TRANSACTION;
CSTART TRANSACTION;
DBEGIN TRANSACTION;
Step-by-Step Solution
Solution:
  1. Step 1: Recall SQL syntax for transactions

    The standard way to start a transaction is using START TRANSACTION; or BEGIN TRANSACTION;.
  2. Step 2: Check each option

    START TRANSACTION; is the most widely supported and standard syntax. CREATE TRANSACTION and OPEN TRANSACTION are invalid. BEGIN TRANSACTION is valid in some systems but START TRANSACTION is more standard.
  3. Final Answer:

    START TRANSACTION; -> Option C
  4. Quick Check:

    Start transaction command = START TRANSACTION [OK]
Quick Trick: Use START TRANSACTION to start safely [OK]
Common Mistakes:
  • Using CREATE TRANSACTION which is invalid
  • Confusing START TRANSACTION with BEGIN TRANSACTION
  • Trying OPEN TRANSACTION which doesn't exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes