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
3003
December 06, 2012 02:20PM
Re: MYSQL triggers
1205
December 06, 2012 05:19PM
1126
December 06, 2012 08:13PM
872
December 06, 2012 08:23PM
1118
December 06, 2012 10:00PM
1097
December 07, 2012 05:07AM
1062
December 07, 2012 05:25AM
1056
December 07, 2012 05:38AM
1142
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.