oracle中避免sort操作
生活随笔
收集整理的這篇文章主要介紹了
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;
總結
以上是生活随笔為你收集整理的oracle中避免sort操作的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java学习笔记:使用dom4j解析xm
- 下一篇: Asp.net MVC中Html.Par