我无法为触发器解决此错误。怎么了?
CREATE OR REPLACE TRIGGER update_count
AFTER UPDATE ON form_data
IS
BEGIN
SET NOCOUNT ON;
IF(UPDATE(januaryValue))
BEGIN
UPDATE form_count C
SET value = januaryValue
FROM form_data D
INNER JOIN form_count ON C.idData = D.idData;
END;
END IF;
END;
我改变它并且我有另一个错误:第3行出错:PLS-00103:遇到符号" BEGIN"什么时候 期待以下之一: ),*& = - +< /> at in mod mod not rem => <>或!=或〜=> =< =<>或者喜欢喜欢2 like4 likec之间重叠||多星年的成员 SUBMULTISET
CREATE OR REPLACE TRIGGER update_count
AFTER UPDATE ON form_data
FOR EACH ROW
BEGIN
IF(UPDATE(januaryValue))
BEGIN
UPDATE form_count
SET value = new.januaryValue
WHERE idData = new.idData
END;
END IF;
END