haitao: 这个效率怎么样呢? [阅读: 300] 2006-04-20 07:34:29 declare @bl int select @bl=count(1) from b select id,count(w) fc from ( select a1.w,a1.ID from A a1 left join b on a1.w=b.w where b.w is not null ) a having count(w)>=@bl