This trigger fires before update on the account_details table but at runtime reports the acc_det table as mutating.
It looks like it's fired by an update statement inside a trigger on the acc_det table.
If this is the case you should make the backup of the acc_det row in a before update trigger on the acc_det table, not on the account_details table.
Then the trigger could look like this:
Code:
create or replace trigger acc_det_update_trigger before update on
acc_det for each row
begin
insert into acc_det_backup (comp_acct, ... list of other columns here ...)
values (:old.comp_acct, ... other :old. columns here ...);
end ;
/
If you made a typo and the acc_det and account_details tables are the same, you can use the trigger above as well.
Ales
Bookmarks