SQL代码如下: select charindex('1,','121,1,1234') select patindex('%1,%','121,1,1234') select charindex('','121,1,1234') select patindex('%1%','121,1,1234')运行结果如下:3311