MySQL triggers cannot update rows in same table the trigger is assigned to. Suggested workaround?

前端 未结 5 1887
鱼传尺愫
鱼传尺愫 2020-11-28 15:11

MySQL doesn\'t currently support updating rows in the same table the trigger is assigned to since the call could become recursive. Does anyone have suggestions on a good wor

5条回答
  •  鱼传尺愫
    2020-11-28 16:14

    If you want to update column that you don't read in trigger function, then as a workaround, you could put that column into separate table.

提交回复
热议问题