I have a trigger looks simmar like this.
GET_NAME is a function and works good.
What's wrong?
create or replace trigger trg_update_USER
after
update on USER
for each row
begin
if UPDATING then
UPDATE USER
set NAME = GET_NAMEnew.EMP_NO,:new.DEPT,'2')
where EMP_NO = :new.EMP_NO and :new.DEPT;
end if;
end;
GET_NAME is a function and works good.
What's wrong?
create or replace trigger trg_update_USER
after
update on USER
for each row
begin
if UPDATING then
UPDATE USER
set NAME = GET_NAMEnew.EMP_NO,:new.DEPT,'2')
where EMP_NO = :new.EMP_NO and :new.DEPT;
end if;
end;