update zhanghuxinxi set jiaoyikahao = replace(replace(replace(replace (jiaoyikahao ,char(9),""),char(13),""),char(10),""),char(32),"");
trim():这个函数只会去掉字段开头结尾的空格
rtrim():去掉字段右侧空格
ltrim():去掉字段左侧空格
2022-03-06 10:13:56
update zhanghuxinxi set jiaoyikahao = replace(replace(replace(replace (jiaoyikahao ,char(9),""),char(13),""),char(10),""),char(32),"");
trim():这个函数只会去掉字段开头结尾的空格
rtrim():去掉字段右侧空格
ltrim():去掉字段左侧空格