Hey guys, I got a table called members and Im trying to set up a trigger to add 1 YEAR onto a DATE when someone adds a new record. The SQL Command I've been trying is:
Quote:
CREATE TRIGGER setResigned
BEFORE INSERT ON members
FOR EACH ROW
BEGIN
SET NEW:dateResigned = DATE_ADD(NEW:dateJoined,INTERVAL 1 YEAR);
END;
|
I've been messing with this for two days, read the MySql documentation, search all over the net, no avail.
Please help. Thanks.