1、语法:substring(str,start_index,end_index)
2、作用:用来截取一个字段中的其中一部分
3、samples:将字符串'beautiful fairy'中的‘beautiful’给提取出来,则可用substring 来实现
select substring('beautiful fairy',1,9 )as date from table1;
1、语法:substring(str,start_index,end_index)
2、作用:用来截取一个字段中的其中一部分
3、samples:将字符串'beautiful fairy'中的‘beautiful’给提取出来,则可用substring 来实现
select substring('beautiful fairy',1,9 )as date from table1;