oracle 反向索引 -凯发k8网页登录

苟有恒,何必三更起五更眠;
最无益,只怕一日曝十日寒.
posts - 241, comments - 318, trackbacks - 0, articles - 16

oracle 反向索引

posted on 2013-04-27 17:05 xcp 阅读(1612) 评论(0)  编辑  收藏 所属分类: database
create index i_info_classid on b_info(classid);
create index i_info_classid_reverse on b_info(reverse(classid));
analyze table b_info compute statistics for table for all indexes;
--都使用索引
select * from b_info where classid like '1e92c5409e99484%';
--都使用索引
select * from b_info where reverse(classid) like reverse('3b27');


名称: ♪4c.esl | .↗evon
口号: 遇到新问题♪先要寻找一个方案乄而不是创造一个方案こ
mail:


网站地图