当前位置:网站首页>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
边栏推荐
猜你喜欢

Application of EMQ X in Internet of things platform of China Construction Bank

How to page query after the 10 billion level data sub table?

The basic principle of MRAM

商品后台管理实现分析步骤

如何k个一组反转链表
![[最佳实践]了解 Eolinker 如何助力远程办公](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[最佳实践]了解 Eolinker 如何助力远程办公
![[best practice] learn how eolinker helps Telecommuting](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[best practice] learn how eolinker helps Telecommuting

Using powerful powerbi Sangji diagram to express complex operation business flow

【涂鸦物联网足迹】涂鸦云平台接口说明

Double 11 big second kill, cloud server as low as 0.7 fold
随机推荐
dat.GUI 打造可视化工具(一)
Hand in hand to teach you to use container service tke cluster audit troubleshooting
没有磁盘空间 No space left on device
说说 C# 9 新特性的实际运用
JT-day10
毕业设计之 ---基于微服务框架的电影院订票系统
[best practice] learn how eolinker helps Telecommuting
LeetCode-378. 有序矩阵中第K小的元素
Kubernetes-18: installation and use of dashboard
Do you know your server? Do you know what's inside the server
如何用代码上传头像,并添加自己的版权信息?
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
剑指offer之打印超过数组一半的数字
做个别人家的网页
Configure the NZ date picker time selection component of ng zerro
AQS源码深入分析之条件队列
Low power Bluetooth single chip helps Internet of things
mongodb 源码实现系列 - 网络传输层模块实现三
How to use binary search algorithm
What is the Ethernet module? What are the functions and characteristics of the Ethernet module