Prevent mutually recursive execution of triggers?

前端 未结 1 1100
鱼传尺愫
鱼传尺愫 2021-02-12 20:18

Suppose you have the tables Presentations and Events. When a presentation is saved and contains basic event information, such as location and date, an

相关标签:
1条回答
  • 2021-02-12 20:54

    I'm not sure about doing it per transaction, but do you need nested triggers switched on for other parts? If you switch them off on the server then a trigger won't fire from another trigger updating a table.

    EDIT (answer from the comments): You will need to alter trigger A to use TRIGGER_NESTLEVEL

    0 讨论(0)
提交回复
热议问题