日期:2014-05-18 浏览次数:20545 次
declare @str varchar(100) select @str = id1s from table2 where id2=1 select * from table1 where charindex(','+ltrim(id)+',',','+@str+',') > 0