
13/09/2012, 01:10
|
| | Fecha de Ingreso: septiembre-2007
Mensajes: 268
Antigüedad: 17 años, 5 meses Puntos: 8 | |
Respuesta: Trigger al insertar fila me daba un error de compilacion y despues de solucionarlo me daba un error en la ejecucion.
Pero al final lo he solucionado.
DROP TRIGGER ORDERS_AFTER_INSERT;
CREATE OR REPLACE TRIGGER orders_after_insert
BEFORE INSERT
ON INTERVINIENTES FOR EACH ROW
BEGIN
IF ((:new.id_nat_sys_code = '00024') AND (:new.id_nat is null)) then
:new.id_nat := :new.cif;
END IF;
END; |