开发者社区 问答 正文

触发器创建错误

触发器创建哪里有错误啊,求大神指点
2
这是触发器的代码 执行创建显示错误如下
ERROR 1064 (42000): 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 '' at line 1
ERROR 1054 (42S22): Unknown column 'NEW.id' in 'where clause'
ERROR 1064 (42000): 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 'END' at line 1

mysql版本是5.1.69

展开
收起
落地花开啦 2016-02-15 10:01:12 2878 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    3
    触发器中对原表进行update,会导致原表执行update操作执行错误

    2019-07-17 18:42:58
    赞同 展开评论