MSQL字符串取子串 substr函数

substr(str,pos,len);

从pos位置开始,截取len个字符

SUBSTR(str FROM pos FOR len)

同上,从pos位置开始,截取len个字符

SUBSTR(str,pos)


SUBSTR(str FROM pos)


同上,从pos开始的位置,一直截取到最后

猜你喜欢

转载自fenglei.iteye.com/blog/2207133