oracle 函数索引

oracle中创建函数索引即是 你用到了什么函数就建什么函数索引,比如substr

select * from table where 1=1

and substr(field,0,2) in ('01')

创建索引的语句就是

create index   indexname on table(substr(fileld,0,2)) online nologging   ;

 

创建索引并制定表控件

create index   indexname on table(substr(fileld,0,2)) online nologging   tablespace  表空间名;


版权声明:本文为tang_jian_dong原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。