Archive

Posts Tagged ‘分页’

分页问题

June 18th, 2009 wajoynece No comments

表T
索引T(id)
select * from (select * from t order by id desc) where rownum<=10;
搜集统计信息,不走索引;
用hint,不走索引;
在zh提醒下,终于想起来是not null约束搞鬼,以前也遇到过,笨死。

Categories: Oracle Tags: