我觉得不必要改动.
建议你建两个基于function index.
substr(b,0,2),to_char(occur_date,'yyyy')create index b_substr_idx on table1 (substr(b,0,2));
create index occur_date_year_idx on table1 (to_char(occur_date,'yyyy'));注意:只有把init.ora参数QUERY_REWRITE_ENABLED=TRUE时,才能使用函数型索引.