1、用INselect * from b where id in (select id from a where 条件) 2、用JOINselect b.* from b inner join a on b.ID=a.ID where 条件 (如:where a.字段1=1)