MySQL Forums
Forum List  »  Triggers

Re: MYSQL triggers
Posted by: Mads Kristensen
Date: December 06, 2012 05:19PM

What about something like this?

CREATE TRIGGER `before_delete_carts`
BEFORE DELETE ON `Producer`
FOR EACH ROW
BEGIN
DELETE FROM Seasons WHERE StartDate = Producer_Id.StartDate
DELETE FROM Seasons WHERE EndDate = Producer_Id.EndDate
END

Hope there is someone who can help me?

Options: ReplyQuote


Subject
Views
Written By
Posted
2974
December 06, 2012 02:20PM
Re: MYSQL triggers
1190
December 06, 2012 05:19PM
1116
December 06, 2012 08:13PM
863
December 06, 2012 08:23PM
1108
December 06, 2012 10:00PM
1088
December 07, 2012 05:07AM
1051
December 07, 2012 05:25AM
1039
December 07, 2012 05:38AM
1133
December 07, 2012 06:50AM


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.