MySQL Forums
Forum List  »  Triggers

Re: MYSQL triggers
Posted by: Mads Kristensen
Date: December 07, 2012 05:38AM

What about something like this:

CREATE TRIGGER `Seasons_after_delete`
AFTER DELETE ON `Seasons`
FOR EACH ROW
BEGIN
DELETE FROM Seasons
WHERE Seasons.StartDate = old.StartDate

DELETE FROM Seasons
WHERE Seasons.EndDate = old.EndDate
END

I get an error though :-/

Options: ReplyQuote


Subject
Views
Written By
Posted
2938
December 06, 2012 02:20PM
1181
December 06, 2012 05:19PM
1111
December 06, 2012 08:13PM
858
December 06, 2012 08:23PM
1105
December 06, 2012 10:00PM
1081
December 07, 2012 05:07AM
1041
December 07, 2012 05:25AM
Re: MYSQL triggers
1029
December 07, 2012 05:38AM
1127
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.