REPLACE new line character in MYSql not working

后端 未结 5 1225

I executed following query and for some reason its not replacing new line character in database . It says Rows matched 1 but no change . What can be wrong ?

mysq         


        
5条回答
  •  隐瞒了意图╮
    2021-02-03 21:39

    You can match a newline character using \n, not \\n.

    Code:

     UPDATE aboutme 
     SET abouttext=REPLACE(abouttext,'\n','') 
     WHERE userid='5099a95cd944b8.22468149';
    

提交回复
热议问题