oracle插入触发器后另一个表&用状态更新同一行

时间:2015-06-23 19:40:21

标签: database oracle stored-procedures oracle11g triggers

我有一个阶段表(TableA),其中包含XMLType的数据是从Queue填充的。我编写了After Insert Trigger来处理这个XMLType字段并将数据插入另一个Table(TableB)。插入TableB后,我想更新TableA,状态为'已完成'。 我已经验证了其他问题,其中大多数建议在插入触发器之前,这对我来说不是一个选项。 我已经检查了" Update same table after Insert trigger"," Oracle AFTER INSERT Trigger", " Update with after insert trigger on same table"," Updating the same row in oracle during a trigger?"。 由于Queue填充数据,我无法关注" Copy records with insert select, then update attributes in the same set of records"同样。 我看到了这个" Update same table after Insert trigger"但无法理解它是如何实施的。我尝试使用更新直接更新以及调用具有更新语句的过程,并且两者都失败导致突变问题。感谢您的帮助。

0 个答案:

没有答案