ITeye博客

Oracle优化记录

uuuvvv · 2010-03-04 17:47 · 数据库 · Markdown

平时在工作中较少涉及sql的优化,需要积累!

  1. 取一个表中前n条记录并排序

平时的写法是:select * from table where rownum >= 100 order by something

优化后的写法:select * from (select * from table order by something) where rownum >= 100

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。