我使用phpmyadmin助手编写了如下所述的触发器,结果看起来正确,当我导出SQL代码并将其插入MySQL主机服务器时,会发生这些错误。
CREATE TRIGGER `occupy_trig` AFTER INSERT ON `sgr_customer`
FOR EACH ROW begin
If(New.company != "")THEN
Insert into sgr_customer_group (id_customer, id_group)VALUES(NEW.id_customer,4);
END IF;
END
怎么了? 感谢