CREATE SEQUENCE GTBCLIENTE_SITUACAO;

SET GENERATOR GTBCLIENTE_SITUACAO TO 4;

SET TERM ^ ;

create trigger tbcliente_situacao_bi for tbcliente_situacao
active before insert position 0
as
begin
  if (new.id is null) then
    new.id = gen_id(gtbcliente_situacao,1);
end
^

SET TERM ; ^

