ǰλãҳ »
ָ»
    ԣ һֱѧϰoracle ϣܺʹҹͬ̽ в֮
 

 

 ·exchangeȫļ    »ʾժҪ«
    ժҪ0дǰ Ҫwindows2000 server£exchange serversharepoint portal serverȫܵӦãͬʱ漰һЩsql serverµĸ ֻһЩĸ˵ҪԸΪϣ˽ϸϣԷʲο׵ӡеĴ벻㣬뼰ʱָ 1 ......
 ·ܵ()    »ʾժҪ«
    ժҪܵ roger sanders Ц ԭijdb2 magazine quarter 3, 2003 vol. 8, issue 3 Ӣԭģ·δȨתʱԭӣ ƽ̨--ȷָdb2 udbпȡúܺõ db2 udb 81 for linux unixwindows İ汾......


oracleʹӼ1

һֱѧϰoracle ϣҹͬ̽ вָ֮

:FOXPROЌFŴ󌑵DQ

index ֶnullʹ ƼĶ:ORACLESQLŻϵ()

Щ " n/a " null չϢ:ڵϴOracle9ista

================================================================

================================================================

8i ʹûںindex null

create table t (n number);

create index ind_n on t(n,1);   //  t(n,a) ʡռ

select v from t where n is null;

v

--------------------

lg

execution plan

----------------------------------------------------------

   0      select statement optimizer=choose (cost=3 card=614 bytes=6140)

   1    0   table access (by index rowid) of t (cost=3 card=614 bytes=6140)

   2    1     index (range scan) of ind_n (non-unique) (cost=3 card=614)

Ҫס cbo

i doesnt need query rewrite to make that leap, it is a "safe" operation.

==============================================================

null bitmap index ʹ

==============================================================

ʹöϵindex ʹindex

create table t ( f_seq int, t_seq int, x char(1) );

create index t_idx on t(f_seq,t_seq);

select f_seq, t_seq from t where f_seq > 0 and t_seq is null;

execution plan


...   һҳ
 ·apacheϲpro*cһ    »ʾժҪ«
    ժҪapacheϲpro*cһ apacheϲpro*cַ500linuxϵoracle ias,ⲻ,ѽ500Ĺ̺ʹҴһ,ϣԴ. ϵͳ:redhat advanceserver 2.1ݿ: oracle 8.1.7.4apache: 1.3.12 +++++++++++++++++......
» £

©2000-2007 All Rights Reserved. 1024X768 MSIE