1:外表大 内表小用in,外表小内表达用exits; 2:exits外表用loop 循环 ,每次循环再对内表查询; 3:in对主查询使用索引,exits对内表使用索引,not in 不使用索引,not exits 主子查询都使用索引;