触发器共1篇

MySQL触发器更新本表数据异常:Can’t update table ‘tbl’ in stored function/trigger because it is already used by statement which invoked this

MySQL触发器更新本表数据异常:Can’t update table ‘tbl’ in stored function/trigger because it is already used by statement which invoked this-Alive

如果你在触发器里面对刚刚插入的数据进行了 insert/update, 则出现这个问题。因为会造成循环的调用. create trigger test before update ...

数据库# mysql# 触发器

AliveAlive6月前
04341