📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

If a foreign key is set to ON UPDATE CASCADE, what happens when a parent primary key value changes?

A. Child foreign keys become NULL
B. All matching child foreign key values change to the new value ✅
C. The update is blocked
D. Child rows are deleted

Correct Answer: B. All matching child foreign key values change to the new value

Explanation

UPDATE CASCADE propagates a parent key change to every referencing child row.