oracle中避免sort操作

1、升序排列

create index ix_table1 on table1 (column1,column2);

select column1,column2 from table1 order by column1,column2;

2、降序排列

create index ix_table1 on table1 (column1 desc,column2);

select column1,column2 from table1 order by column1 desc,column2;

posted @ 2016-03-01 11:36  ppjj  阅读(547)  评论(0编辑  收藏  举报