mysql如何替换字符串中换行符及回车符
mysql如何替换字符串中换行符及回车符
在mysql中char(10)表示换行符,char(13)表示回车符
所以mysql替换字符串中换行符及回车符sql脚本如下:
UPDATE zysq.blog SET NeiRong = REPLACE(NeiRong,CHAR(10),‘
’);
UPDATE zysq.book SET NeiRong = REPLACE(NeiRong,CHAR(10),‘
’);
UPDATE zysq.book SET NeiRong = REPLACE(NeiRong,’
‘,’
');
UPDATE zysq.book SET NeiRong
来源地址:https://blog.csdn.net/fqfq123456/article/details/128437882