mysql字符串截取方法

2020-03-25 08:47:23

函数substring:

substring(字符串,起始索引,长度 )

起始索引从1开始。

例子

substring(“asdf”,1,2)

结果“as”