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

Just graduated will be confused, I after 7 years of summary, give programmers your 7 suggestions

lvgl 库 V7版本相关应用

More than 60 technical executives gathered in Songshan Lake, and the first phase of Huawei cloud core partner developer training camp was successfully concluded

毕业即失业?大学生如何分配学习时间比例,拥有完整计算机知识体系?

Low power Bluetooth single chip helps Internet of things

Git老鸟查询手册

win7+vs2015+cuda10.2配置TensorRT7.0

Double 11 big second kill, cloud server as low as 0.7 fold

What is the essence of cloud database? Explore the core value of Huawei cloud database

Performance evaluation report of YoMo codec - Y3
随机推荐
Jingtao project Day10
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
How to make a set of K reverse linked lists
容器技术(三)搭建本地 Registry【15】
如何实现后台管理系统的权限路由和权限菜单
PHP - cURL复制粘贴性接入短信验证码示例
Hand in hand to teach you to use container service tke cluster audit troubleshooting
手把手教你使用容器服务 TKE 集群审计排查问题
What is the essence of cloud database? Explore the core value of Huawei cloud database
How to implement LRU algorithm
日常页码样式问题
win7+vs2015+cuda10.2配置TensorRT7.0
Nine kinds of distributed primary key ID generation schemes of sub database and sub table are quite comprehensive
Super low price cloud server is coming
都要2021年了,现代C++有什么值得我们学习的?
[graffiti Internet of things footprint] graffiti cloud platform interface description
A practical chrome Gadget: xtrace
【科创人】Rancher江鹏:从清华工程物理学硕士到云计算开源创业者
Leetcode 49 letter heterotopic word grouping
ES6、ES7、ES8学习指南