문제

When I make a

(select instr(hist.texte, '\n')) 

I find 0 while there is \n in my text.

I don't have this error with another character chain.

Is it the "\" which could be a problem?

Thanks in advance,

도움이 되었습니까?

해결책

If you're speaking about text, literally typed in your string, then you should escape \n since DBMS will treat \ as escape-sequence symbol. So following will work:

SELECT INSTR(hist.texte, '\\n')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top