0

我有一个插入后触发器table tbl_campboss_report,但它给了我 tbl_campboss_report正在变异,触发器/函数可能看不到它

这是我的触发器:

BEGIN
update tbl_campboss_report c set c.units=(select b.units from tbl_campboss_master b where b.details=:new.details); 

END;

谁可以帮我这个事?
提前致谢

4

1 回答 1

4

考虑将触发器更改为 BEFORE INSERT。您不需要在触发器中编写 UPDATE 语句。只需将值分配给所需的列。

:new.units = <value that you get from the query>;
于 2013-05-19T07:03:53.323 回答