select * from a where id in (select aId from b where name="zhangsan")
select * from a,b where a.id=b.aId
select * from a inner join b on a.id=b.aId