中国开发网: 论坛: 程序员情感CBD: 贴子 315767
haitao
这个效率怎么样呢?
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

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录