mysql trigger stored trigger is already used by statement which invoked stored trigger

前端 未结 2 635
滥情空心
滥情空心 2020-11-27 22:18

I want to set up a trigger so that if on an update the prediction field is = 3 then the trigger changes the value to 4 and saves it in the database. The trigger is below.

2条回答
  •  温柔的废话
    2020-11-27 22:48

    MySQL triggers can't manipulate the table they are assigned to. All other major DBMS support this feature so hopefully MySQL will add this support soon.

    http://forums.mysql.com/read.php?99,122354,240978#msg-240978

提交回复
热议问题