How to remove carriage returns in a text field in sqlite?

前端 未结 2 1067
迷失自我
迷失自我 2020-12-28 19:20

I have an sqlite database with over 400k records. I have just found that some of the text fields have carriage returns in them and I wanted to clean them out. I wanted to co

2条回答
  •  一整个雨季
    2020-12-28 20:06

    From @MarkCarter's comment on the question above:

    SELECT replace(dirty_text_field, X'0A', '\n');
    

提交回复
热议问题