先跟根据一个条件查出来一个集合 然后用这个集合里一个数据做条件 放入另一个sql里面查出来另一个集合 这个sql应该怎样写 。能不能写一条sql语句全都查出来!
select * from xxxx where id in (select id from xxxxx where ...)