📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A parent row is deleted and its child rows disappear automatically. Which referential action caused this?

A. ON DELETE SET NULL
B. ON DELETE RESTRICT
C. ON DELETE CASCADE ✅
D. ON DELETE SET DEFAULT

Correct Answer: C. ON DELETE CASCADE

Explanation

ON DELETE CASCADE automatically deletes child rows when their parent row is deleted.