1442-Can’t update table ‘XXX’ in stored function_trigger because it is already used by statement whi

wdzsjl 1个月前 (10-10) 阅读数 12 #ASP
错误记录: 1442-Can’t update table ‘XXX’ in stored function/trigger because it is already used by statement which invoked this stored function/trigger.  错误原因:   解决方案: MySQL中触发器中不能对本表进行 insert ,update ,delete操作,以免递归循环触发。 对于update 只能用set进行操作,insert与delete只能借助第二张表才能实现需求。

 

wx.jpg ywfw.jpg
热门