当前位置:网站首页>sql 大小写转换,去掉前后空格
sql 大小写转换,去掉前后空格
2020-11-09 22:26:00 【龘游戏人生龘】
-- 大小写转换 转为小写
UPDATE file_selection SET mash=LOWER(mash) WHERE xxxxx = '0';
-- 大小写转换 转为大写
UPDATE file_selection SET mash=UPPER(mash) WHERE xxxxx = '0';
-- 去掉字段中的空格 字符前的空格
UPDATE file_selection SET mash=ltrim(mash)
-- 去掉字段中的空格 字符后的空格
UPDATE file_selection SET mash=rtrim(mash)
-- 去掉字段中的空格 字符中的空格
UPDATE file_selection SET mash=replace(mash, ' ', '') WHERE xxxxx = '0';
版权声明
本文为[龘游戏人生龘]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/3628379/blog/4710147
边栏推荐
- Unemployment after graduation? How do college students allocate their study time and have a complete computer knowledge system?
- [最佳实践]了解 Eolinker 如何助力远程办公
- 团灭 LeetCode 打家劫舍 问题
- How can financial management system help enterprises realize financial automation management?
- Leetcode 49 letter heterotopic word grouping
- From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
- 2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
- Kubernetes-18: installation and use of dashboard
- What is the essence of cloud database? Explore the core value of Huawei cloud database
- 配置ng-zerro的nz-date-picker时间选择组件
猜你喜欢
传统采购模式已变!汽车采购职能该如何创新?
面试官:缓存穿透、缓存雪崩和缓存击穿是什么?
How to use binary search algorithm
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
Realization of commodity backstage system
在PHP7下怎么大幅度提升Laravel框架性能?安装Stone!
ERP的权限管理的操作与设计--开源软件诞生24
[stm32h7] Chapter 6: stm32h7 dma2d acceleration of ThreadX guix
Jingtao project Day10
刚毕业都会迷茫,我经过7年总结,送给程序员的你们7点建议
随机推荐
Using powerful powerbi Sangji diagram to express complex operation business flow
ERP的权限管理的操作与设计--开源软件诞生24
dat.GUI Creating visualization tools (1)
lvgl 库 V7版本相关应用
【科创人】Rancher江鹏:从清华工程物理学硕士到云计算开源创业者
[stm32h7] Chapter 6: stm32h7 dma2d acceleration of ThreadX guix
VsCode之Markdown插件
低功耗蓝牙单芯片为物联网助力
Rabbitmq installation
修改jar包里的文件
40 tips for life that may be useful
【QT】子类化QObject+moveToThread实现多线程
Git老鸟查询手册
C/C++编程日记:逻辑井字棋(圈叉)游戏开发
Nine kinds of distributed primary key ID generation schemes of sub database and sub table are quite comprehensive
Double 11 big second kill, cloud server as low as 0.7 fold
How to gracefully prevent switch switching of view UI?
[最佳实践]了解 Eolinker 如何助力远程办公
How to carry out modular power operation efficiently
获取List集合对象中某一列属性值