select a.* from a where not exists(select 1 from b where b.id=a.id);

解决方案 »

  1.   

    select * from A where id no in (select id from B where A.id=B.id)
      

  2.   

    sorryselect * from A where id not in (select id from B where A.id=B.id)
      

  3.   

    select * from from a
     where a.id not in (select id from b);
      

  4.   

    select a.id from (select a.id,b.id from a,b where a.id = b.id(+))
    where b.id is null;
      

  5.   

    select a.id from (select a.id,b.id from a,b where a.id = b.id(+))
    where b.id is null;
      

  6.   

    select a.*
    from a,b
    where a.id = b.id(+)
      and b.id is null