mysql中去除换行以及回车

换行

update test set logiccontent=replace(logiccontent, char(10), '');

回车

update test set logiccontent=replace(logiccontent, char(13), '');


转载于:https://my.oschina.net/funmo/blog/538278