当前位置:Gxlcms > mysql > mysql5.5触发器的问题_MySQL

mysql5.5触发器的问题_MySQL

时间:2021-07-01 10:21:17 帮助过:16人阅读

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 ;

记一下

人气教程排行