我正在尝试这个触发器,但它一直给我这个错误:
扳机
DELIMITER $$
CREATE
TRIGGER entries_limit_trigger
BEFORE INSERT ON Feed
FOR EACH ROW
BEGIN
Set @counts=(SELECT count(*) from Feed);
IF (@counts > 10000)
THEN
PRINT 'INSERTED SUCCESS';
END IF;
END
$$
DELIMITER ;
错误
#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 ''INSERTED SUCCESS'; END IF; END' at line 9