📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the purpose of a ROLLBACK statement?

A. To save changes permanently
B. To undo all changes made by a transaction since its start ✅
C. To create a backup
D. To lock a table

Correct Answer: B. To undo all changes made by a transaction since its start

Explanation

ROLLBACK discards uncommitted changes and restores the prior state.