cree un trigger simple para hacer un insert de una replicacio de una tabla padre solo que tengo problemas con la secuencia q genera el id y por lom ismo no realiza los insert quien pueda ayudar graciass
CREATE
OR REPLACE TRIGGER tc_ingreso_cliente_tgr
AFTER INSERT
ON SWBAPPS.TC_INGRESO_CLIENTE
REFERENCING
NEW AS New OLD AS Old
FOR
EACH ROW
DECLARE
BEGIN
INSERT INTO TC_INGRESO1_CLIENTE (
ingreso2id
,
swdatecreated
,
swcreatedby
,
Nombres
,
Apellidos
,
Telefono_celular
,
Ingresos_Mensuales
,
Tiempo_de_Contrato
,
Clasificacion
--commit;
);
values (TC_INGRESO1_CLIENTE_SQ.nextval,
sysdate,
:new.swcreatedby,
:new.Nombres,
:new.Apellidos,
:new.Telefono_celular,
:new.Ingresos_Mensuales,
:new.Tiempo_de_Contrato,
:new.Clasificacion
);
--commit;
EXCEPTION
WHEN OTHERS THEN
null;
END
tc_ingreso_cliente_tgr;