DECLARE nSeq int; BEGIN EXECUTE 'select nextval(''seqWsConfigConsNotaFisca_Aud'');' INTO nSeq; new.id:= nSeq; return new; END