我在以下代码中遇到错误。
CREATE TRIGGER au_auction AFTER UPDATE ON dmtable
FOR EACH ROW
BEGIN
IF NEW.bid > OLD.bid THEN
INSERT INTO auction_log(auction,id,ts,item,bid) VALUES('update',NEW.id,NEW.ts,NEW.item,NEW.bid);
END IF;
END;
问题出在语法级别……你能多指点一下吗?
这是错误消息:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
mysql 5.x
谢谢