Ver Mensaje Individual
  #2  
Antiguo 20-05-2008
[maeyanes] maeyanes is offline
Capo de los Capos
 
Registrado: may 2003
Ubicación: Campeche, México
Posts: 2.732
Reputación: 24
maeyanes Va por buen camino
Hola...

Se me ocurre algo así:

Código SQL [-]
create trigger MyTrigger for MyTable
after insert position 0 active
as
begin
  if ((New.termino == 0) and (New.m01 == '')) then
    delete from MyTable where Id = New.Id;
end;


Saludos...
Responder Con Cita