oracle做分页查询怎么做?
oracle做分页查询怎么做? 以前一直是用 mysql 的 limit 这次是用的 oracle 不会了 求救
select t2.* from (select rownum r,t1.* from youtable t1 where rownum<?) t2 where t2.r>? 小于最大的,大于最小的,就是你需要的条数 如果你取40-50条之间的 只需要小于50 大于40就OK了.
oracle做分页查询怎么做?
oracle做分页查询怎么做? 以前一直是用 mysql 的 limit 这次是用的 oracle 不会了 求救
select t2.* from (select rownum r,t1.* from youtable t1 where rownum<?) t2 where t2.r>? 小于最大的,大于最小的,就是你需要的条数 如果你取40-50条之间的 只需要小于50 大于40就OK了.