天天看点

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

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不允许的

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

转载于:https://www.cnblogs.com/FlFtFw/p/9574780.html