Subject | Re: [firebird-support] string difficulty |
---|---|
Author | Virna Constantin |
Post date | 2015-12-07T08:56:01Z |
SET TERM ^ ;CREATE PROCEDURE DEL_CHAR (M_SIR varchar(500),M_CHAR varchar(10) )RETURNS (M_STR varchar(500) )ASdeclare ii smallint;declare iy smallint;BEGINm_str='';iy=char_length(m_sir);ii=1;while (ii<=iy) dobeginif (position(substring(m_sir from ii for 1),m_char)=0) thenm_str=m_str||substring(m_sir from ii for 1);ii=ii+1;endEND^SET TERM ; ^m_sir='ABC*DEFG'm_char='*'