Hello, i have created two tables account1 and log_table and tried to create trigger as follows::
create or replace trigger acc_history
after update of balance
ON account1
for each row
begin
insert into log_table
values(:old.c_name,:old.balance,:old.acc_no,:new.balance,timestamp);
end;
but its giving errors such as::
SQL> show errors;
Errors for TRIGGER ACC_HISTORY:
LINE/COL ERROR
-------- -----------------------------------------------------------------
2/1 PL/SQL: SQL Statement ignored
2/13 PL/SQL: ORA-00913: too many values
I am unable to fix these errors...need help...Thanks