SET TERM ^ ;
CREATE OR ALTER TRIGGER INSPANIVERSARIOS FOR ANIVERSARIOS
ACTIVE BEFORE INSERT POSITION 0
as 
begin 
   new.ID=gen_id(PQ_ANIVER,1);
end
^
SET TERM ; ^