当前位置:网站首页>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
边栏推荐
- On the practical application of C 9's new features
- 做个别人家的网页
- 代码中的软件工程--对menu项目的源码分析
- Python调用飞书发送消息
- Low power Bluetooth single chip helps Internet of things
- 开源项目,私活利器,快速开发
- How can financial management system help enterprises realize financial automation management?
- Chrome扩展程序热更新方案:2.基于双缓存更新功能模块
- JT-day10
- 【科创人】Rancher江鹏:从清华工程物理学硕士到云计算开源创业者
猜你喜欢
jt-京淘项目
JT-day10
AQS source code in-depth analysis of conditional queue
IP地址SSL证书
Analysis steps of commodity background management
Apache Hadoop的重要组成
Traditional purchasing mode has changed! How to innovate automobile purchasing function?
开源项目,私活利器,快速开发
PHP - cURL复制粘贴性接入短信验证码示例
Configure the NZ date picker time selection component of ng zerro
随机推荐
R8 compiler: tailoring kotlin libraries and Applications
Unemployment after graduation? How do college students allocate their study time and have a complete computer knowledge system?
Installation and deployment of Flink
商品后台管理实现分析步骤
LeetCode 50 Pow(x,n)
没有磁盘空间 No space left on device
Analysis steps of commodity background management
On the practical application of C 9's new features
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
老旧系统重构技巧,轻松搞定遗留代码
迅为IMX6ULL开发板C程序调用shell
技术点5:XML语言
开源项目,私活利器,快速开发
[graffiti Internet of things footprint] graffiti cloud platform interface description
VsCode之Markdown插件
【QT】子类化QObject+moveToThread实现多线程
Expect ':' at 0, actual = (JSON conversion exception resolution)
【涂鸦物联网足迹】涂鸦云平台接口说明
毕业即失业?大学生如何分配学习时间比例,拥有完整计算机知识体系?
Configure ng