oracle分页

select *
  from (select id,qiyemc, rownum rn
          from qiyeinfo
         where rownum <= (pageNum * pageSize)
       --  and qiyemc like '%诺%'
         order by id desc) t
 where rn >= ((pageNum - 1) * pageSize + 1)
 order by t.id desc

你可能感兴趣的:(oracle)