日期:2014-05-16 浏览次数:20582 次
select b.* from
(
  select a.*,rownum num from
  (
    select * from xg.sys_operators t
    order by to_number(t.op_id)
  ) a
  where rownum <= 5000
) b
where num > 4990
select * from
(
   select rid,num from
  (
    select rid,rownum num from
    (
      select rowid rid from xg.sys_operators t
      order by to_number(t.op_id)
    ) a
    where rownum <= 5000
  ) b
  where num > 4990
) c,xg.sys_operators s
where c.rid = s.rowid 
order by c.num