select id from table where charindex(',1,',','+id+',') >0
IF exists(Select 1 from tabA where id=1) print 'exists' else print 'not exists'
22,210
社区成员
121,726
社区内容
加载中
试试用AI创作助手写篇文章吧