mysql字符串截取
来源:互联网 发布:淘宝数据分析年龄 编辑:程序博客网 时间:2024/04/30 09:07
1. substring_index
substring_index(str,delim,count)
mysql> select substring_index('a-b-c-d','-',-1);+-----------------------------------+| substring_index('a-b-c-d','-',-1) |+-----------------------------------+| d | +-----------------------------------+1 row in set (0.00 sec)mysql> select substring_index('a-b-c-d','-',1);+----------------------------------+| substring_index('a-b-c-d','-',1) |+----------------------------------+| a | +----------------------------------+1 row in set (0.00 sec)
2. SUBSTRING
SUBSTRING(str,pos,len)
SUBSTRING(str FROM pos FOR len)
SUBSTRING(str,pos)
SUBSTRING(str FROM pos)
SUBSTRING(str FROM pos FOR len)
SUBSTRING(str,pos)
SUBSTRING(str FROM pos)
mysql> select substring((substring_index('a-b-c-d','-',2)),2);+-------------------------------------------------+| substring((substring_index('a-b-c-d','-',2)),2) |+-------------------------------------------------+| -b | +-------------------------------------------------+1 row in set (0.01 sec)
- mysql截取字符串
- MySQL截取字符串
- mysql字符串截取
- mysql 截取字符串
- mysql截取字符串
- MySQL 字符串截取函数
- Mysql字符串截取函数
- MySQL截取字符串函数
- mysql字符串截取
- mysql 截取字符串
- Mysql截取字符串
- MySQL 字符串截取函数
- mysql字符串截取
- MySql字符串截取
- mysql字符串截取:
- MySQL 字符串截取函数
- mysql截取字符串
- mysql截取字符串
- SQL查询语句总结
- GIS的学习(二十六)geotools 使用 部分代码总结
- 读OpenGIS® GML标准v3.2.1
- 我爱你,没有什么目的:情感日志
- ok6410开发板的andriod系统下装apk的几种方法整理
- mysql字符串截取
- C# 根据经纬度得到GOOGLE瓦片地址
- asp.net 集合类
- 最好不相见 便可不相恋
- 下载Google地图,瓦片数据(1)
- GEoTools学习笔记---显示三维效果--geotools-renderer3d
- 如果有一天我走了我会伤心:伤感日志
- JSF与Struts的异同
- php 日期格式化