use the function_based index to access the null value
select .... from ... where lxr is null;
this statement can't use the idnex!!!
grant query rewrite to scott;
alter system set query_rewrite_enabled=true; --the default is false
alter system set query_rewrite_integrity=trusted; -- the default is enforced
create index idx_c_khxx_zb_lxr on c_khxx_zb(case when lxr is null then 1 end);
-- alter the index created, gather the table's stats
begin
dbms_stats.gather_table_stats(user,'C_KHXX_ZB',cascade=>true);
end;
/
set autotrace traceonly explain (if not , system @rdbms/admin/utlxplan.sql)
select * from emp.......
set autotrace off
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271063/viewspace-916958/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- null與indexNullIndex
- attempt to index local ‘result‘ (a nil value)Index
- cannot access local variable where it is not associated with a value
- 0317TABLE ACCESS BY INDEX ROWID BATCHEDIndexBAT
- [20180808]Null value to Dynamic SQL.txtNullSQL
- 錯誤解決:Attempting to use uninitialized value VariableZed
- mysql遇到Variable can’t be set to the value of ‘NULL’MySqlNull
- 317TABLE ACCESS BY INDEX ROWID BATCHED2IndexBAT
- 317TABLE ACCESS BY INDEX ROWID BATCHED3IndexBAT
- [LeetCode] 2903. Find Indices With Index and Value Difference ILeetCodeIndex
- Hashtable/HashMap與key/value為null的關係HashMapNull
- Mysql:Variable 'XXXt' can't be set to the value of 'NULL'解決MySqlNull
- What is the difference between Mysql InnoDB B+ tree index and hash index? Why does MongoDB use B-tree?MySqlIndexMongoDB
- [Vue warn]: The data property "dialogVisible" is already declared as a prop. Use prop default valueVue
- VUE前端打包報錯:TypeError: Class extends value undefined is not a constructor or nullVue前端ErrorUndefinedStructNull
- 解決問題:Variable 'time_zone' can't be set to the value of 'NULL'Null
- 瀏覽器報`The value of the ‘Access-Control-Allow-Origin‘ header in the response must not be the wildcard瀏覽器Header
- 【轉載】Kano Model — Ways to use it and NOT use it
- 物件轉json字串的過程中對value為null的值的一些處理物件JSON字串Null
- nginx useNginx
- 【NULL】Oracle null值介紹NullOracle
- Be better to use NPMNPM
- WireGuard Use Notes
- plsql use skillsSQL
- MySQL中IS NULL、IS NOT NULL、!=不能用索引?胡扯!MySqlNull索引
- PropertyChanged == nullNull
- MySQL NULLMySqlNull
- golang multiple-value xxx in single-value contextGolangContext
- svn access to forBiddenORB
- JAVA使用accessJava
- AP(Access Pointer)
- MySQL null值儲存,null效能影響MySqlNull
- 2>/dev/null和>/dev/null 2>&1和2>&1>/dev/null的區別devNull
- Use PHP7PHP
- efcore This MySqlConnection is already in useMySql
- the NTP socket is in use, exiting
- [Typescript] Use Bitwise FlagsTypeScript
- [Vue] Use render functionVueFunction
- Use IE userdata behavior