1.正常现象。
2.where rownum=1
3.建立的临时表是全局的,每个session互相不影响。

解决方案 »

  1.   

    to :  ern(学习Oracle)
      不是,现在只有一个人用,是不是和设置有关
      

  2.   

    还有,有时还会报超时。
    select * from
    (select * from tgmy.c_hwda a
    where a.hwid not in (select hwid from tgmy.ht_d_hwfp) ) b
    where 
    Length(trim(b.hwcode))>=8  and substr(b.hwcode,1,2) >= '01' and substr(b.hwname,1,1) <> 'X'  
    order by substr(b.hwcode,1,2),substr(b.hwcode,8,1) ,substr(b.hwcode,1,7) desc
    如果这么改,速度就不会慢了。但是也达不到我要的效果了。
    not in 和 not existsnot in 要进行全表扫描
    而not exists 不会
    可时实际使用,执行时间是一样的啊。
    有优化的方法吗
      

  3.   

    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch9.htm#1006527