engineering computer science MCQ #751

What is the purpose of the ROLLBACK statement in SQL?

engineering computer science MCQ #751

  1. Question 1

    Q1. What is the purpose of the ROLLBACK statement in SQL?

    • A) To save changes made by a transaction
    • B) To rollback changes made by a transaction
    • C) To create a new transaction
    • D) To delete a transaction

    Answer: To rollback changes made by a transaction

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