帮忙看看那里出问题了,再帮忙改一下,谢谢。DROP TRIGGER data_del;DELIMITER//CREATE TRIGGER data_del AFTER INSERT ON `datapoints` FOR EACH ROWBEGINIF (SELECT COUNT(`ID`) FROM datapoints)>='300' THENDELETE FROM datapoints ORDER BY `ID` ASC LIMIT 100;END IF;END;//