当前位置:网站首页>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
边栏推荐
- [graffiti Internet of things footprint] graffiti cloud platform interface description
- ES6、ES7、ES8学习指南
- How to gracefully prevent switch switching of view UI?
- 动物园[CSP2020]
- 京淘项目day10
- How can financial management system help enterprises realize financial automation management?
- mongodb 源码实现系列 - 网络传输层模块实现三
- dat.GUI 打造可视化工具(一)
- 如何高效进行模幂运算
- 磁阻式随机存储器MRAM基本原理
猜你喜欢

Open source project, private tool, rapid development

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

Configure ng

Postman(一)---功能介绍

财务管理系统如何帮助企业实现财务自动化管理?

EMQ X 在中国建设银行物联网平台中的应用

LeetCode-378. 有序矩阵中第K小的元素

Quick for imx6ull development board c program call shell

Git + -- Code hosting in the history of version management

lvgl 库 V7版本相关应用
随机推荐
From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
What is the essence of cloud database? Explore the core value of Huawei cloud database
手把手教你使用容器服务 TKE 集群审计排查问题
[QT] subclass QObject + movetothread to realize multithreading
Dongge ate grapes when he ate an algorithm problem!
SQL server attached database access denial resolution summary
手把手教你使用容器服务 TKE 集群审计排查问题
正式班D25
[graffiti Internet of things footprint] graffiti cloud platform interface description
dat.GUI 打造可视化工具(一)
[graffiti Internet of things footprint] graffiti cloud platform interface description
SSL证书和公网IP地址如何影响SEO
Configure the NZ date picker time selection component of ng zerro
刚毕业都会迷茫,我经过7年总结,送给程序员的你们7点建议
Python调用飞书发送消息
Four solutions of Android soft keyboard occlusion
Unemployment after graduation? How do college students allocate their study time and have a complete computer knowledge system?
如何实现LRU算法
From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
Traditional purchasing mode has changed! How to innovate automobile purchasing function?