In a transaction, what does the "rollback" operation signify?

  • Committing the changes made by the transaction to the database.
  • Completing the transaction and releasing all locks held by it.
  • Temporarily pausing the transaction to allow other transactions to proceed.
  • Undoing or reverting the changes made by the transaction, restoring the database to its state before the transaction started.
The "rollback" operation in a transaction signifies undoing or reverting the changes made by the transaction, restoring the database to its state before the transaction started. It is typically used to handle errors or ensure data integrity by discarding incomplete or erroneous transactions.
Add your answer
Loading...

Leave a comment

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