Bird
0
0

Which SQL command reverses all modifications made in the current transaction before they are saved?

easy📝 Conceptual Q2 of 15
SQL - Transactions and Data Integrity
Which SQL command reverses all modifications made in the current transaction before they are saved?
ACOMMIT
BROLLBACK
CSAVEPOINT
DBEGIN TRANSACTION
Step-by-Step Solution
Solution:
  1. Step 1: Identify undo command

    ROLLBACK cancels all changes made in the current transaction.
  2. Step 2: Difference from COMMIT

    COMMIT saves changes permanently; ROLLBACK discards them.
  3. Final Answer:

    ROLLBACK -> Option B
  4. Quick Check:

    ROLLBACK undoes changes before commit [OK]
Quick Trick: ROLLBACK cancels uncommitted changes [OK]
Common Mistakes:
  • Confusing COMMIT with ROLLBACK
  • Using SAVEPOINT to undo entire transaction
  • Thinking BEGIN TRANSACTION undoes changes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes