Tema: Trigger
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/01/2007, 06:48
kkikka
 
Fecha de Ingreso: diciembre-2006
Mensajes: 10
Antigüedad: 17 años, 4 meses
Puntos: 0
Re: Trigger

Cita:
Iniciado por seanchan Ver Mensaje
Prueba con algo asi:

SELECT 1
INTO VEXISTE
FROM SINTONIA
WHERE SINTONIA.codigo=:NEW.USO_SINTONIA;

EXCEPTION

WHEN no_data_found then
insert into SINTONIA(codigo) values (:new.uso_sintonia);
END;

En la select no utilices la tabla sobre la que va el trigger porque te dará error de tabla mutante

gracias pero me sigue dando error de compilacion el trigger