Update a table with a trigger after update

后端 未结 3 2038
礼貌的吻别
礼貌的吻别 2020-12-21 09:36

I have two tables

 batch (batch_id,start_date,end_date,batch_strength,is_locked)
 sem (user_id,is_active,no_of_days)

I have executed the tr

3条回答
  •  一个人的身影
    2020-12-21 09:54

    Your UPDATE trigger runs another UPDATE on the same table, which will fire the trigger again, so you get infinite recursion. You probably need to redesign this a little bit, but it's hard to say how without an explanation of what you're trying to do.

提交回复
热议问题