Update same table after Insert trigger

前端 未结 2 1964
孤街浪徒
孤街浪徒 2021-01-24 08:50

I am working on a product in which I have to send SMS to concerned person when someone waits for more than 15 minutes for being served.

For that I have written a procedu

2条回答
  •  深忆病人
    2021-01-24 09:05

    You cannot update the same table in Row-Level AFTER Trigger.
    Change your Row-Level AFTER INSERT trigger to row-level BFEORE INSERT trigger.

    But you UPDATE stmt inside the trigger will not effect the new record being inserted.

    Wonder how it can be done, this is tricky.

提交回复
热议问题