我正在尝试一个触发器,它将插入一个新行并打印它已成功插入表'user'。但它显示错误1442.我能在这做什么?我也无法决定是否应该去'之后'或之前'...请帮助!
DELIMITER $$
CREATE TRIGGER t1
AFTER INSERT ON user
FOR EACH ROW
BEGIN
INSERT INTO USER VALUES (NEW.EID,NEW.NAME,NEW.EMAILID,NEW.LOGINID);
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'USER TABLE:NEW ROW INSERTED';
END$$
DELIMITER ;