SELECT *
FROM tb
WHERE CHARINDEX(',1,', ','+PaymentUserID+',') > 0
OR CHARINDEX(',8,', ','+PaymentUserID+',') > 0
------解决方案-------------------- select * from tb where charindex(',1,',','+paymentUserID+',')>0
or charindex(',8,',','+paymentUserID+',')>0 ------解决方案--------------------
SELECT *
FROM tb
WHERE PaymentUserID like '%1%'
union
SELECT *
FROM tb
WHERE PaymentUserID like '%8%'