Computer Science for IGCSE & O level - Databases (Section 6 - No. 18)
What is the purpose of the `ROLLBACK` statement in a database transaction?
To save the changes made during a transaction.
To discard the changes made during a transaction and restore the database to its previous state.
To begin a new transaction.
To delete the entire database.
Explanation
The `ROLLBACK` statement is used to undo the changes made during a transaction and restore the database to its original state.
Comments (0)
