1064 正确的写法如下: DELIMITER $$CREATE TRIGGER `tkdsp_setspxx` BEFORE DELETE ON `tkdsp` FOR EACH ROW BEGIN update spxx set kcsl=kcsl-old.sl,kczj=kcsl*jhprice where spid=old.spid; END$$DELIMITER ; 记一下