MySQL Forums
Forum List  »  InnoDB

Re: Trigger not executed when record are deleted as a fk cascade event
Posted by: bill barsch
Date: January 04, 2009 10:52PM

try drop the foreign key and create a trigger on parent table to delete the rows on child table.
the "delete from" command on this new trigger will fire the trigger on child table.
it solves the problem to me.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trigger not executed when record are deleted as a fk cascade event
3514
January 04, 2009 10:52PM


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.