Ver Mensaje Individual
  #18  
Antiguo 31-10-2008
Elite237 Elite237 is offline
Miembro
 
Registrado: jul 2007
Posts: 162
Reputación: 17
Elite237 Va por buen camino
Question

Código SQL [-]
CREATE OR ALTER TRIGGER PRUEBA_AD0 FOR PRUEBA
ACTIVE AFTER DELETE POSITION 0
AS
declare variable FILAS INTEGER;
begin
  select count(*) from PRUEBA into :FILAS;
  if (filas = 0) then
    execute statement 'SET GENERATOR G_PRUEBA to 0';
end
Una pregunta, como es la sintaxis de ese trigger?osea que significa?
Código SQL [-]
CREATE OR ALTER TABLE TRIGGER (aqui es un nombre que le daremos al trigger?) FOR (aqui el nombre de la tabla?)



SET GENERATOR (aqui que es el nombre del campo autoincrementable?) TO 0
Saludos
Responder Con Cita