-- charindex 寻找字符串位置
CHARINDEX (@findStr, @baseStr [, @beginPoint ] )
@findStr :想要找到的字符串
@baseStr :基础字符串,即被查找的字符串
@beginPoint:开始查找的位置
-- substring 截取字符串
SUBSTRING (@baseStr, @beginPoint, @endPoint)
@baseStr :基础字符串
@beginPoint:开始截取的位置
@endPoint:结束截取的位置
注:截取从下标为 beginPoint 开始到 下标为 endPoint-2的位置上