select所有结果 from incJobDemand  a
where  条件2  and 条件3
    and  incLocation
        in  (select incLocation
             from incInformation b
             where a.incID =b.incID )

解决方案 »

  1.   

    谢谢我明白了,比如我想要 
    incLocation = lostAngel , workExpDemand = 2 , jobsortID = IT就写
    select * from incJobDemand a
    where workExpDemand=2 and jobsortID=IT
    and incLocation in 
    ( select incLocation b from incInformation where incLocation=lostAngel and a.incID=b.incID )对不对呢?
      

  2.   

    或者,这样写可以么? 
    比如我想要 
    incLocation = lostAngel , workExpDemand = 2 , jobsortID = IT
    就写select * from incJobDemand AS a
    ( select incID from incInformation AS b where incLocation=lostAngel )
    where workExpDemand=2 and jobsortID=IT
    and a.incID=b.incID