1
所以我有以下查詢:與MySQL觸發查詢語法錯誤
CREATE TRIGGER `before_delete`
BEFORE DELETE ON `abc` FOR EACH ROW
BEGIN
DELETE FROM def WHERE OLD.id = objID1 OR OLD.id = objID2;
DELETE FROM ghi WHERE OLD.id = objID;
END;
但那麼MySQL抱怨說,在1號線....
我做了什麼是附近「END」語法錯誤錯誤?