MySQL Forums
Forum List  »  InnoDB

Re: Cascade update fails on MySQL for foreign keys referring to the same table
Posted by: Barry Galbraith
Date: December 08, 2012 07:21PM

Your Foreign Keys seem to indicate that arrivo, provenienza, destinazione are all the same as Stazioni.citta. If that's true, then 2 of your 3 fields are redundant.

Is that what you mean?

Perhaps you want a trigger on Stazioni to cause updates to Treni when changes are made to Stazioni.

Good luck,
Barry.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Cascade update fails on MySQL for foreign keys referring to the same table
892
December 08, 2012 07:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.