select * from B where not exists (select * from A 
 where  A.nodeky=B.nodeky and A.name=B.name) and  bz>5

解决方案 »

  1.   

    select * from B where not exists (select * 
                                                     from A 
                                where  A.nodeky=B.nodeky and A.name=B.name) and b.bz>5
      

  2.   

    select * from B where not exists (select * from A where  A.nodeky=B.nodeky and A.name=B.name) and bz>5
      

  3.   

    OR:select b.* from B表 b left join A表 a on a.nodekey=b.nodekey and a.name=b.name
    where a.nodekey is null and b.bz>5
      

  4.   

    select * from B where not exists (select * from A 
     where  A.nodeky=B.nodeky and A.name=B.name) and  bz>5
      

  5.   

    select * from B where not exists (select * from A where  A.nodeky=B.nodeky and A.name=B.name) and bz>5
      

  6.   

    OR:select b.* from B表 b left join A表 a on a.nodekey=b.nodekey and a.name=b.name
    where a.nodekey is null and b.bz>5
      

  7.   

    select * from B where not exists (select 1 from A where  A.nodeky=B.nodeky and A.name=B.name) and bz>5