SET TERM ^ ; CREATE trigger ttbcolaborador_ac_portal_b01i for tbcolaborador_acesso_portal active before insert position 0 AS BEGIN IF (NEW.ID IS NULL) THEN NEW.ID = GEN_ID(GTBCOLABORADOR_ACESSO_PORTAL,1); END ^ SET TERM ; ^