1442 - Can't update table 'site' in stored functiontrigger because it is al

Posted 我是小菜啊1

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1442 - Can't update table 'site' in stored functiontrigger because it is al相关的知识,希望对你有一定的参考价值。

 

一、问题描述

Can\'t update table \'site\' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.

无法在存储的函数/触发器中更新表“站点”,因为语句已经使用了调用该存储函数/触发器的语句

 

二、问题解决

触发器不能自己操作自己的表,我当时用到这个是增加一条数据,里面有一个字段和id一样,这样解决的。

以上是关于1442 - Can't update table 'site' in stored functiontrigger because it is al的主要内容,如果未能解决你的问题,请参考以下文章

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

[已解决]Can't update: no tracked branch

You can't specify target table 't_mail_marketing' for update in FROM clause

update mysql row (You can't specify target table 'x' for update in FROM clause)

You can't specify target table 'table' for update in FROM clause

mysql You can't specify target table 'xxx' for update in FROM clause的解决