📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What happens if you issue COMMIT when no transaction is active?

A. The database is deleted
B. An error always occurs
C. All tables are locked
D. In most systems it has no effect or commits nothing ✅

Correct Answer: D. In most systems it has no effect or commits nothing

Explanation

  • COMMIT with no active transaction normally does nothing.
  • Some systems may warn, but no data changes.