sql语言去空格
select REPLACE(REPLACE(REPLACE(REPLACE(字段名,CHAR(13),''),CHAR(10),''),CHAR(9),''),' ','') from 表名**
**替换前**

**替换后**

**说明**
**chr(9) tab空格
chr(10) 换行
chr(13) 回车
Chr(13)&chr(10) 回车换行
chr(34) 双引号
chr(39) 单引号**
R语言去空格
**trimws(表名$ 字段名 which = c("both", "left", "right"), whitespace = "[ \t\r\n]")**
**trimws函数:去掉字符串头/尾的空格。**

有问题,欢迎留言。
感谢关注!!!
CSDN同步更加精彩---ID:weixin_45098535
CSDN链接:https://blog.csdn.net/weixin_45098535/article/details/103201703
网友评论