如何写一段SQL,例如A已先执行查询操作,B执行查询操作不能看到A查询的结果呢?

解决方案 »

  1.   

    select * from B
    minus
    select * from A
      

  2.   

    yfjyz(dd) 的答复,应该可以满足你的要求!
      

  3.   

    大概格式:
    select  * from b 
    not in
    (select  * from a)
      

  4.   

    对呀?比如,您去买火车票,如果a有一台电脑检索后,另外的b电脑是查不出的,除非A电脑退出后,,,
      

  5.   

    select  exfield from b where exfield
    not in 
    (select  exfield from a)