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.
我有一个要检查的列,其中包含带有换行符的字符串。我希望能够明确地看到这些字符串中的\n和字符。\r有没有办法编写我的 SQL 查询来告诉它输出带有换行符的字符串?
\n
\r
SELECT REPLACE( REPLACE(yourcolumn, '\r', '\\r'), '\n', '\\n' ) FROM yourtable;