oracle分页查询 可以分为两类
1,单表查询
这个简单
2, 多表查询
在二层查询中不可用表名,无效,只需用列原名即可。
(select rownum rid,infoid,accountid
from
(select info.id infoid,salary.accountid accountid
from wchpfms_refund info left join wchpfms_refunditem salary
on info.id=salary.refundid
order by info.id )
) where rid between 1 and 5;