功能:返回模式在字符串中第一次出现的位置
解释:patindex('%pattern%',expression)
pattern:要查找的模式
expression:被找的字符串
例子:select patindex('%jinweida%','123jinweida54') 结果:4
功能:返回模式在字符串中第一次出现的位置
解释:patindex('%pattern%',expression)
pattern:要查找的模式
expression:被找的字符串
例子:select patindex('%jinweida%','123jinweida54') 结果:4