当前位置:网站首页>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
边栏推荐
- 低功耗蓝牙单芯片为物联网助力
- Daily page number style problems
- From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
- Old system refactoring skills, easy to handle legacy code
- How to greatly improve the performance of larravel framework under php7? Install stone!
- win7+vs2015+cuda10.2配置TensorRT7.0
- 磁阻式随机存储器MRAM基本原理
- It will be 2021. What is the modern C + + worth learning?
- R8 compiler: tailoring kotlin libraries and Applications
- 当我们开发一个接口时需要注意些什么
猜你喜欢
随机推荐
Double 11 big second kill, cloud server as low as 0.7 fold
[best practice] learn how eolinker helps Telecommuting
PHP - curl copy paste access SMS verification code example
如何k个一组反转链表
容器技术(三)搭建本地 Registry【15】
How to carry out modular power operation efficiently
SQL Server附加数据库拒绝访问解决方法汇总
代码中的软件工程--对menu项目的源码分析
expect ':' at 0, actual = (JSON转化异常解决)
Android instance - simple login layout
Daily page number style problems
Unemployment after graduation? How do college students allocate their study time and have a complete computer knowledge system?
Dongge ate grapes when he ate an algorithm problem!
Configure the NZ date picker time selection component of ng zerro
Using powerful powerbi Sangji diagram to express complex operation business flow
LeetCode 48 旋转图像
说说 C# 9 新特性的实际运用
手把手教你使用容器服务 TKE 集群审计排查问题
老旧系统重构技巧,轻松搞定遗留代码
【科创人】Rancher江鹏:从清华工程物理学硕士到云计算开源创业者








