Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我做一个
(select instr(hist.texte, '\n'))
我在文本中有 \n 时找到 0。
我没有另一个字符链的这个错误。
是“\”可能有问题吗?
提前致谢,
如果您正在谈论文本,按字面意思输入您的字符串,那么您应该转义,\n因为 DBMS 将\视为转义序列符号。所以以下将起作用:
\n
\
SELECT INSTR(hist.texte, '\\n')