REPLACE new line character in MYSql not working

后端 未结 5 1233

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

    You think that it contains \n, but it has \r.

    update [Table] set [column]=replace(convert([column] using utf8) ,'\r','');
    

    In your case:

    update aboutme set abouttext=replace(convert(abouttext using utf8) ,'\r','');
    

提交回复
热议问题