📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What happens to locks held by a transaction after COMMIT?

A. They are released ✅
B. They are kept forever
C. They are transferred to the next transaction
D. They are converted to shared locks only

Correct Answer: A. They are released

Explanation

  • COMMIT releases the transaction's locks.
  • Other transactions can then access the data.