mysql中截取字段
# 从左侧截取,截取指定长度
select left("字段名",len) from table# 从右侧截取,截取指定长度select right("字段名",len) from table# 从中间某个位置截取指定长度select MID("字段名",pos,len) from table# 从某个位置开始之后所有的字符select SUBSTR("字段名",pos,len) from table
select left("字段名",len) from table# 从右侧截取,截取指定长度select right("字段名",len) from table# 从中间某个位置截取指定长度select MID("字段名",pos,len) from table# 从某个位置开始之后所有的字符select SUBSTR("字段名",pos,len) from table