MySql插入触发器报错!!!
目的就是让表里相同id只有一条数据(最后一条) 所以我建了个触发器 插入之前先删除已经存在的id的数据
CREATE TRIGGER `autoDeleteOld` BEFORE INSERT ON `lastscore` FOR EACH ROW delete from
lastscore where id = NEW.id
执行的时候报错: 1442 Can't update table 'lastscore' in stored function/trigger because
it is already used by statement which invoked this stored function/trigger
求救......