我在 MySqldealers
和dealers_info
. 我尝试创建触发器,删除信息dealers
后将删除相应的行dealers info
CREATE TRIGGER del_info AFTER DELETE ON dealers
FOR EACH ROW
BEGIN
DELETE FROM dealers_info WHERE dealer_id = OLD.dealer_id;
END;
但我有一个错误:
#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 4