为了账号安全,请及时绑定邮箱和手机立即绑定

为啥一直提示这错误mysql

为啥一直提示这错误mysql

qq_小杜_1 2017-05-29 09:11:22
————————————前面已建触发器——————————————mysql> create trigger upd_check before update on tb    -> for each row    -> begin    -> if new.a < 0 then    -> set new.a =0;    -> elseif new.a > 100 then    -> set new.a = 100;    -> end if ;    -> end ; //1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-> for each row    -> begin    -> if new.a < 0 then    -> set new.a =0; ' at line 2
查看完整描述

1 回答

已采纳
?
是王小二呀

TA贡献88条经验 获得超19个赞

分隔符

查看完整回答
反对 回复 2017-06-21
  • 1 回答
  • 0 关注
  • 1847 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信