我有一个标准库和另外一个库1,关键字为xh,现在想以标准库来选库1中不包含标准库记录的所有的记录,简单的说就是显示出库1中除了标准库中含有的所有记录select * 标准库,库1  ????? 后面应该怎么写,

解决方案 »

  1.   

    select * form 库1 where xh not in (select xh from 标准库)
      

  2.   

    select * form 库1 where xh not in (select xh from 标准库)
      

  3.   

    select * form 库1 where xh not in (select xh from 标准库)
      

  4.   

    select * from 库1..YourTable where 条件
    能从当前库查出库1的数据。
    不过你也可以试试临时表
      

  5.   

    我两个库,每个库 
         只有1万多条记录 
    select * form 库1 where xh not in (select xh from 标准库)
    这个方法死机~~~~~~~
    是不是效率太低了~~~~,有好一点的方法吗~?????
      

  6.   

    select * form 库1 a, 标准库 b where a.xh<>b.xh
      

  7.   

    是库,还是表?
    是form,还是from?
    是抄得还是自己写的?
      

  8.   

    to 情飞   是表, from ,写错了~~
    问题没有解决, 请大家再想想办法  可不可以用关联join 呢~???/