haitao:
它的rownum是指表里的记录存储顺序号,还是查询结果按order by后的顺序号?
[阅读: 490] 2010-08-05 03:16:03
开始以为是后者,这样分页就不是问题了:
select * from (
select rownum() as fno, ...
where ...
order by ...
) a
where fno>=1234*100 and fno<1234*100+100
但是,后来好像发现是前者,则意义不大了:谁也不会仅仅按表的存储顺序查询的