sql server 截取字符串写法

SELECT Left(@strSP,CharIndex(',',@strSP)-1)


SELECT SubString(@strSP,CharIndex(',',@strSP)+1,Len(@strSP)-CharIndex(',',@strSP)) 

猜你喜欢

转载自blog.csdn.net/qin_yaping/article/details/78839961