请问1442-Can’t update table ‘XXX’ in stored function_trigger because it is already used by statement w
错误记录: 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只能借助第二张表才能实现需求。
更新时间:2025-04-10 22:48:45
转载请注明原文链接:https://www.muzicopy.com/suibi/717.html