📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A parent primary key changes and the child foreign keys change automatically. Which referential action is in effect?

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

Correct Answer: C. ON UPDATE CASCADE

Explanation

ON UPDATE CASCADE propagates changes in a parent primary key to the foreign keys of child rows.