22,302
社区成员




select c.a1,c.a2 from table3 c join table1 a on c.a1=a.a join table2 b on c.a2=b.a
select c.a1,c.a2 from c join a on c.a1=a.a join b on c.a2=b.a
select a1,a2 from table3
select c.* from table3 c,table1 a,table2 b
where a.a=c.a1 and b.a=c.a2
??
select * from tb3 aa
where exists(select 1 from tb1 where a=aa.a1)
and exists(select 1 from tb2 where a=aa.a2)