当前位置:网站首页>sql 截取数据中 ‘.’的前后数据
sql 截取数据中 ‘.’的前后数据
2020-11-09 22:26:00 【龘游戏人生龘】
-- 取 '.' 前的数据 substr(字段,起始位置,结束位置) locate('.',name):获取字符下表
SELECT *,(substr(name,1,locate('.',name)-1)) as namex FROM file_selection WHERE xxxxx='0';
SELECT *,(substr(name,locate('.',name)-1),length(name)) as namex FROM file_selection WHERE xxxxx='0';
版权声明
本文为[龘游戏人生龘]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/3628379/blog/4710150
边栏推荐
- Dongge ate grapes when he ate an algorithm problem!
- [graffiti Internet of things footprint] graffiti cloud platform interface description
- Low power Bluetooth single chip helps Internet of things
- The movie theater booking system based on micro Service Framework
- How can financial management system help enterprises realize financial automation management?
- PHP - curl copy paste access SMS verification code example
- 配置ng-zerro的nz-date-picker时间选择组件
- 关于生活,可能有用的40条建议
- Container technology (3) building local registry [15]
- How to implement LRU algorithm
猜你喜欢

AQS source code in-depth analysis of conditional queue

骚操作!嵌套 JSON 秒变 Dataframe!

【科创人】Rancher江鹏:从清华工程物理学硕士到云计算开源创业者

Traditional purchasing mode has changed! How to innovate automobile purchasing function?

Realization of commodity backstage system

【STM32H7】第6章 ThreadX GUIX上手之STM32H7 DMA2D加速

LeetCode-378. 有序矩阵中第K小的元素

JS deep copy

【QT】子类化QObject+moveToThread实现多线程

Analysis steps of commodity background management
随机推荐
说说 C# 9 新特性的实际运用
What is the Ethernet module? What are the functions and characteristics of the Ethernet module
SSL证书和公网IP地址如何影响SEO
[graffiti Internet of things footprint] graffiti cloud platform interface description
C console calls ffmpeg to push MP4 video file to stream media open source service platform easydarwin process
开源项目,私活利器,快速开发
刚毕业都会迷茫,我经过7年总结,送给程序员的你们7点建议
How to use binary search algorithm
How to greatly improve the performance of larravel framework under php7? Install stone!
IP地址SSL证书
Leetcode 48 rotating image
Day84: Luffy: preferential activity strategy & User Authentication & checking / settlement of shopping cart goods
Double 11 big second kill, cloud server as low as 0.7 fold
Mongodb source code implementation series network transport layer module implementation 3
LeetCode 50 Pow(x,n)
如何优雅阻止view UI 的 Switch 切换?
The solution of type interface * * is not known to the mapperregistry
[graffiti Internet of things footprint] graffiti cloud platform interface description
在PHP7下怎么大幅度提升Laravel框架性能?安装Stone!
如何用代码上传头像,并添加自己的版权信息?