`
飘零羽
  • 浏览: 25658 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论
文章列表
http://edu.codepub.com/2010/0107/19492.php
http://blog.csdn.net/yzsind/archive/2010/12/06/6059209.aspx
原sql: select * from (          select a.*,rownum rn from                    (select * from product a where company_id=? order by status) a          where rownum<=20) where rn>10; 优化: 优化原理是通过纯索引找出分页记录的ROWID,再通过ROWID回表返回数据,要求内层查询和排序字段全在索引里。 create index myindex on product(company_id,status); se ...
Global site tag (gtag.js) - Google Analytics