Create or Replace Trigger SIGRADD.Insertar_Peticionario
After Insert
on SIGRADD.PERSONAL
Referencing old as OLD new as NEW
For each Row
begin
if (:NEW.CCATEGORIA in ('MG','JS')) then
insert into SIGRADD.PERSONAL_PETICIONARIOS (CPERSONAL, cpeticionario)
values (:NEW.CPERSONAL, 00001);
end if;
if (:NEW.CCATEGORIA in ('RA') then
insert into SIGRADD.PERSONAL_PETICIONARIOS (CPERSONAL, cpeticionario)
values (:NEW.CPERSONAL, 000228);
end if;
end;
¿alguien puede echarme una mano? Gracias.





Mode Lineal
