What would be a sql query to remove \n\r from the text?

后端 未结 7 1741
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 15:13

I am using MySQL. My data has a column called text, which uses the TEXT data type.

There are several newlines for each record in this column. I want to

相关标签:
7条回答
  • 2020-12-17 15:39

    The above version with single backslash cleared up some for me but also had to run this to clear up the rest.

    REPLACE(REPLACE(FIELD, '\\n', ''), '\\r', '')
    
    0 讨论(0)
提交回复
热议问题