mysql 去掉换行符,回车符

1 去掉回车+换行

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

2去掉回车

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

3去掉换行

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

4查询含有'%'的字串

  SELECT DISTINCT key_word FROM dim_ec_ref WHERE  key_word  LIKE '%/%%%' ESCAPE '/'

猜你喜欢

转载自ganliang13.iteye.com/blog/1701215
今日推荐