I created trigger which should insert record into T_TABLE_B
after T_TABLE_A changed(update) one column. But after updating T_TABLE_A, got error
ORA-04091: table T_TABLE_A is mutating, trigger/function may not see it
My code looks like this:
create or replace trigger TR_TABLE_B
after update on T_TABLE_A
for each row
begin
insert into T_TABLE_B
select * from T_TABLE_A
where EMAIL_DT is not null
and EMAIL_SENT='Y';
commit;
end;
I expect to have insert to table B after table A got updated 2 columns(both tables has same structure and columns)
Thank you