码迷,mamicode.com
首页 > 其他好文 > 详细

Can’t update table ‘xxx’ in stored function/trigger because it is already used by statement which invoked this stored function/trigger

时间:2018-09-02 20:25:15      阅读:656      评论:0      收藏:0      [点我收藏+]

标签:which   red   upd   can   state   表操作   tab   mysql   update   

MySQL: Solution for ERROR 1442 (HY000): Can’t update table ‘xxx’ in stored function/trigger because it is already used by statement which invoked this stored function/trigger.

今天在做触发器时发生了这个错误

原因是在对某表操作时同时触发对该表插入

估计这在mysql不允许的

不可以把触发条件和触发动作归于一表

Can’t update table ‘xxx’ in stored function/trigger because it is already used by statement which invoked this stored function/trigger

标签:which   red   upd   can   state   表操作   tab   mysql   update   

原文地址:https://www.cnblogs.com/FlFtFw/p/9574780.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!