engineering computer science MCQ #907

What is the purpose of 'ROLLBACK' in a database transaction?

engineering computer science MCQ #907

  1. Question 1

    Q1. What is the purpose of 'ROLLBACK' in a database transaction?

    • A) To save changes made during a transaction
    • B) To undo changes made during a transaction
    • C) To start a new transaction
    • D) To end a transaction

    Answer: To undo changes made during a transaction

    Explanation: The 'ROLLBACK' statement undoes changes made during a transaction, restoring the database to its previous state.