REPLACE new line character in MYSql not working

后端 未结 5 1334

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:54

    If \n does not work as in my case, the following worked \r\n

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

    In my case it has been a web application.

提交回复
热议问题