📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What does ROLLBACK do to a savepoint created earlier in the same transaction?

A. It commits the savepoint
B. It deletes all savepoints
C. ROLLBACK TO SAVEPOINT keeps the savepoint usable, while a full ROLLBACK ends the transaction ✅
D. It creates a new savepoint

Correct Answer: C. ROLLBACK TO SAVEPOINT keeps the savepoint usable, while a full ROLLBACK ends the transaction

Explanation

  • A partial rollback to a savepoint keeps the transaction alive.
  • A full ROLLBACK ends the transaction and discards all its work.