[firebase-br] O que vem a ser o position no trigger?
    Fausto 
    fausto.s.a em uol.com.br
       
    Ter Dez 14 18:43:52 -03 2004
    
    
  
Boa noite pessoal..
Alguém poderia me dizer o que vem a ser  o parametro position de um trigger?
 Tenho alguns trigger que checa se determinado cnpj, já se encontra cadastrado, eu o utilizo em algumas tabelas que  já tem o trigger do Generator e ambos estão com a position setada para 0, isto implica em alguma coisa?
exemplo:
CREATE TRIGGER CLIENTES_BI FOR CLIENTES
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.CLICOD IS NULL) THEN
    NEW.CLICOD = GEN_ID(GEN_CLIENTES,1);
END
^
/* Trigger: CLIENTES_CPF */
CREATE TRIGGER CLIENTES_CPF FOR CLIENTES
ACTIVE BEFORE INSERT OR UPDATE POSITION 0
as
begin
  if (new.clicpf is not null) then
   if (new.clicpf <> old.clicpf) then
    if (exists
       (select CLICPF from CLIENTES
        where CLICPF = new.CLICPF)) then
         exception CPF_EXISTE;
end
Fausto
-------------- Próxima Parte ----------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 9/12/2004
    
    
Mais detalhes sobre a lista de discussão lista