110,529
社区成员
发帖
与我相关
我的任务
分享
declare @strSource varchar(50)
create table table1(ID int,gic varchar(50))
insert into table1
select 1 ID,'A型,B型' gic
union
select 2,'A型,C型'
union
select 3,'A型'
set @strSource = 'A型,B型'
select * from table1 where charindex(@strSource,gic) > 0