当前位置:网站首页>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
边栏推荐
猜你喜欢
C console calls ffmpeg to push MP4 video file to stream media open source service platform easydarwin process
AQS source code in-depth analysis of conditional queue
Dongge ate grapes when he ate an algorithm problem!
配置ng
Postman (1) -- function introduction
Analysis steps of commodity background management
From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
What if the Mac can't connect to the app store and prompts you to connect to the network?
传统采购模式已变!汽车采购职能该如何创新?
PHP - curl copy paste access SMS verification code example
随机推荐
关于生活,可能有用的40条建议
SQL Server附加数据库拒绝访问解决方法汇总
Day84: Luffy: preferential activity strategy & User Authentication & checking / settlement of shopping cart goods
How to realize the authority route and authority menu of background management system
Modify the files in the jar package
[最佳实践]了解 Eolinker 如何助力远程办公
获取List集合对象中某一列属性值
公网IP地址和SSL证书可以提升SEO吗?
LeetCode 50 Pow(x,n)
ES6、ES7、ES8学习指南
商品后台管理实现分析步骤
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
PHP - curl copy paste access SMS verification code example
Hot update scheme of Chrome extension program: 2. Based on double cache update function module
Dongge ate grapes when he ate an algorithm problem!
Old system refactoring skills, easy to handle legacy code
面试官:缓存穿透、缓存雪崩和缓存击穿是什么?
IP地址SSL证书
Postman (1) -- function introduction
lvgl 库 V7版本相关应用