What is the role of the 'rollback' statement in transaction management?

  • Committing the changes made by the current transaction
  • Ending the current transaction
  • Initiating a new transaction
  • Reversing the changes made by the current transaction
The 'rollback' statement in transaction management is used to undo the changes made by the current transaction. If an error occurs or a condition is met, the 'rollback' command ensures that all changes made so far in the transaction are rolled back, maintaining data consistency.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *