当前位置:网站首页>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
边栏推荐
- How can financial management system help enterprises realize financial automation management?
- Kubernetes-18: installation and use of dashboard
- 磁阻式随机存储器MRAM基本原理
- 代码中的软件工程--对menu项目的源码分析
- 分库分表的 9种分布式主键ID 生成方案,挺全乎的
- dat.GUI 打造可视化工具(一)
- [最佳实践]了解 Eolinker 如何助力远程办公
- 【科创人】Rancher江鹏:从清华工程物理学硕士到云计算开源创业者
- 说说 C# 9 新特性的实际运用
- LeetCode-378. 有序矩阵中第K小的元素
猜你喜欢

Performance evaluation report of YoMo codec - Y3

毕业设计之 ---基于微服务框架的电影院订票系统

day84:luffy:优惠活动策略&用户认证&购物车商品的勾选/结算

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

expect ':' at 0, actual = (JSON转化异常解决)
![[QT] subclass QObject + movetothread to realize multithreading](/img/47/e91ee9126d495f1b5dea8f016dace2.jpg)
[QT] subclass QObject + movetothread to realize multithreading

如何运用二分查找算法

From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing

Four solutions of Android soft keyboard occlusion

配置ng
随机推荐
如何用代码上传头像,并添加自己的版权信息?
AQS源码深入分析之条件队列
More than 60 technical executives gathered in Songshan Lake, and the first phase of Huawei cloud core partner developer training camp was successfully concluded
[graffiti Internet of things footprint] graffiti cloud platform interface description
JS深拷贝
LeetCode-378. 有序矩阵中第K小的元素
IP地址SSL证书
动物园[CSP2020]
PHP - curl copy paste access SMS verification code example
Quick for imx6ull development board c program call shell
毕业即失业?大学生如何分配学习时间比例,拥有完整计算机知识体系?
Daily page number style problems
Four solutions of Android soft keyboard occlusion
The movie theater booking system based on micro Service Framework
Expect ':' at 0, actual = (JSON conversion exception resolution)
A practical chrome Gadget: xtrace
How to realize the authority route and authority menu of background management system
Kubernetes-18:Dashboard安装及使用
How to make a set of K reverse linked lists
How to use RTSP streaming component easypusher to push MP4 files to easydarwin open source platform?