Tables A and B in action.
A [commonfield, otherfields]
B [commonfield]
查询 1
select
A.otherfields
from
A,B
where
A.commonfield = B.commonfield
and some filters ( A.commonfield )
查询 2
select
A.otherfields
from
A
where
A.commonfield in ( select B.commonfield from B )
and some filters ( A.commonfield )
查询 1 等同于查询 2。在 (a) 内存使用和 (b) 速度方面哪个更好?