create or replace
TRIGGER LIQUIDACIONPROCESADA
after insert on liquidacion
for each row
declare
vRut empleado.rut%type;
vIdEmpleado empleado.idempleado%type;
begin
select idempleado,rut into vIdEmpleado,vRut from empleado where idempleado = :new.idempleado;
insert into funcionariosprocesados(rut,glosa,idempleado) values(vRut,'Funcionario procesado',vIdEmpleado);
end;
No hay comentarios:
Publicar un comentario