mysql共2篇

延时双删实现MySQL和Redis的数据一致性

延时双删实现MySQL和Redis的数据一致性-Alive

延时双删实现MySQL和Redis的数据一致性

数据库# mysql# 数据库# redis

AliveAlive2月前
01400

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# 触发器

AliveAlive8月前
07491