触发器如下:
CREATE OR REPLACE TRIGGER trigger_XQCS
AFTER update on hi_psndoc_ctrt
for each row
begin
update hi_psndoc_ctrt
set glbdef1 = (select count(conttype)
from hi_psndoc_ctrt
where conttype = 2);
end;
update hi_psndoc_ctrt set conttype = '2' where PK_PSNDOC_SUB = '1002T810000000000RIK';
报错
ORA-04091: 表 USER0923.HI_PSNDOC_CTRT 发生了变化, 触发器/函数不能读它
ORA-06512: 在 "USER0923.TRIGGER_XQCS", line 2
ORA-04088: 触发器 'USER0923.TRIGGER_XQCS' 执行过程中出错