--这样?
--> 测试数据: @os
declare @os table (id int,name varchar(5))
insert into @os
select 1,'abcde' union all
select 2,'de' union all
select 3,'cde' union all
select 4,'abd' union all
select 5,'bcde' union all
select 6,'abe' union all
select 6,'xyz'
declare @name varchar(50)
set @name='abcdefghij'
select * from @os where len(replace(@name,name,''))<len(@name)