因此,我有以下疑问:
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;
but then mysql complains that there s syntax error near END at line 1....
我有什么错?