您当前的位置: 首页 >  sql

Dongguo丶

暂无认证

  • 1浏览

    0关注

    472博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

sql中去掉字段的所有空格

Dongguo丶 发布时间:2018-10-19 10:28:49 ,浏览量:1

字符前的空格,用ltrim(string) 

字符后的空格,用rtrim(string) 

字符中的空格,用replace(string, ' ', ' ')

update qx_users set `NAME`=rtrim(NAME) update qx_users set `NAME`=ltrim(NAME) update qx_users set NAME=replace(NAME,' ','')

关注
打赏
1638062488
查看更多评论
立即登录/注册

微信扫码登录

0.3739s