我有一些触发器:
DELIMITER $$
CREATE
TRIGGER `auto_user_auth` AFTER INSERT
ON `tbl_user`
FOR EACH ROW BEGIN
INSERT INTO authassignment(itemname, userid) VALUES ('Customer', NEW.id);
END$$
DELIMITER ;
在 PhpMyAdmin 中查询没有错误,但在查询之后:
DROP TRIGGER `auto_user_auth`
我越来越:
1360 - 触发器不存在
没有DELIMETER ;
我得到:
#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 6
我做错了什么?感谢帮助