Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个插入后触发器table tbl_campboss_report,但它给了我 tbl_campboss_report正在变异,触发器/函数可能看不到它
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;
谁可以帮我这个事? 提前致谢
考虑将触发器更改为 BEFORE INSERT。您不需要在触发器中编写 UPDATE 语句。只需将值分配给所需的列。
:new.units = <value that you get from the query>;