mysql如何替换字符串中换行符及回车符
mysql如何替换字符串中换行符及回车符
在mysql中char(10)表示换行符,char(13)表示回车符
所以mysql替换字符串中换行符及回车符sql脚本如下:
UPDATE zysq.blog SET NeiRong = REPLACE(NeiRong,CHAR(10),‘
’);
替换字符串中回车符 update mscto.table set bodyhtml= replace(bodyhtml,char(13),‘’);
UPDATE zysq.book SET NeiRong = REPLACE(NeiRong,CHAR(10),‘
’);
UPDATE zysq.book SET NeiRong = REPLACE(NeiRong,’
‘,’
');
UPDATE zysq.book SET NeiRong = REPLACE(NeiRong,CHAR(10),‘
’);
'content': m[3].replace('[b]', '<h4>').replace('[/b]',
'</h4> &