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
2986
December 06, 2012 02:20PM
Re: MYSQL triggers
1196
December 06, 2012 05:19PM
1120
December 06, 2012 08:13PM
867
December 06, 2012 08:23PM
1114
December 06, 2012 10:00PM
1091
December 07, 2012 05:07AM
1054
December 07, 2012 05:25AM
1044
December 07, 2012 05:38AM
1138
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.