Oracle: Using subquery in a trigger

前端 未结 3 1256
梦毁少年i
梦毁少年i 2021-01-13 16:14

How can I work around the Oracle\'s limitation of not allowing subqueries in triggers.

Here\'s an example trigger I\'m trying to create, but am unable to because I c

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-13 17:09

    Can you put the condition into the action (between BEGIN and END) instead of in the 'whether it fires'? Yes, it means that the trigger body might be fired more often - but if it gets you around the problem...

提交回复
热议问题