Is there an easier way to change a single value in a row together with its Reference , and that Reference’s reference, Instead of backtracking through 20 tables to find the beginning of it all?
Links to Answers
—On Cascade (Thanks Javier)
ALTER TABLE catalog DROP CONSTRAINT aa
ALTER TABLE catalog ADD CONSTRAINT
(FOREIGN KEY (stock_num, manu_code) REFERENCES stock
ON DELETE CASCADE CONSTRAINT ab)
Have you tried to define the reference as “ON UPDATE CASCADE”?