34,873
社区成员
发帖
与我相关
我的任务
分享declare @tb table(dt varchar(50))
insert into @tb select 'a'
insert into @tb select 'b'
insert into @tb select 'c'
declare @str varchar(10)
set @str='a,b'
select * from @tb where charindex(','+dt+',',','+@str+',')>0