I have a field in the page that receives only number, but when I compare in the function this value of the page with what is in the database, it does not return to search.
I'm trying to use Replace
to strip the formatting of the bank's value to compare with the value coming from the page.
this is the code I'm using
IF @charLinhaDigitavel IS NOT NULL
BEGIN
SET @SQL = @SQL + @CONDICAO + 'TIT.LinhaDigitavel LIKE ''%''+'+ '''' +replace( @charLinhaDigitavel,''.'',''''),replace( @charLinhaDigitavel,'' '','''' + '''' +'+''%'' '
SET @CONDICAO = ' AND '
END