Mysql update triggger
CREATE TRIGGER serieTrigger
AFTER UPDATE ON a
FOR EACH ROW
BEGIN
IF(NEW.homegoal>NEW.awaygoal) THEN
INSERT INTO b SET action = 'update',hometeam=OLD.paramB,games=(games+1),won=(won+1),points=(points+2);
END IF;
END;

What's the problem? 
Mysql update triggger
===

CREATE TRIGGER serieTrigger
AFTER UPDATE ON a
FOR EACH ROW
BEGIN
IF(NEW.homegoal>NEW.awaygoal) THEN
INSERT INTO b SET action = 'update',hometeam=OLD.paramB,games=(games+1),won=(won+1),points=(points+2);
END IF;
END;

What's the problem? 