我想从触发器中删除多个表中的数据,但似乎我的语法不正确。
{ DELIMITER $$
CREATE TRIGGER `delete_store`
AFTER DELETE ON `menufacture`
FOR EACH ROW
BEGIN
DELETE FROM company WHERE OLD.id = menufacture_id ;
DELETE FROM product WHERE OLD.id = product.menufacture_id;
DELETE FROM menufacture WHERE OLD.id = menufacture.parent ;
END $$`
}