Tema: Trigger
Ver Mensaje Individual
  #9 (permalink)  
Antiguo 17/01/2007, 10:00
seanchan
 
Fecha de Ingreso: junio-2006
Mensajes: 87
Antigüedad: 17 años, 10 meses
Puntos: 0
Re: Trigger

Prueba con:
create or replace trigger INSERTAR_USO_SINTONIA
before insert on USO_SINTONIA
for each row

declare
VEXISTE number(1);
begin
select 1
into VEXISTE
from SINTONIA
where SINTONIA.codigo = :new.USO_SINTONIA;
exception
when no_data_found then
vExiste:=0;
end; -->> falta el end del exception
end;

Si te da error el error Warning: Trigger created with compilation errors.
Ejecuta en la consola: show errors
y te mostrara mas detalles del error de compilacion