Execute procedure in a trigger

user207902 picture user207902 · Nov 10, 2009 · Viewed 45.4k times · Source

Is it possible to execute a stored procedure inside a trigger?

Thank you

Answer

Tony Andrews picture Tony Andrews · Nov 10, 2009

Yes, like this:

create or replace trigger trg
after insert on emp
for each row
begin
   myproc(:new.empno, :new.ename);
end;