http://www.csdn.net/Expert/topic/443/443853.shtm

解决方案 »

  1.   

    select * 
    from table1 as a
    where exists(
      select * 
      from table2
      where field1=a.field1 and field2=a.field2 and field3=a.field3 and field4=a.field4
    )
      

  2.   

    select * 
    from table1 as a
    where not exists(
    /*    ~~~*/
      select * 
      from table2
      where field1=a.field1 and field2=a.field2 and field3=a.field3 and field4=a.field4
    )
      

  3.   

    zswang(伴水)(伤心中)哥哥:
      我现在就去试试!我以后一定好好谢你!