Oracle分页技术--rownum

 

--Oracle分页:rownum
--剔除所有信息
select * from dczd order by dczd.dczd_dm;
--剔除上述信息中的前9条
select view1.*, rownum rn
  from (select * from dczd order by dczd.dczd_dm) view1
 where rownum < 10;
--剔除所有信息中的3-9条
select view2.*
  from (select view1.*, rownum rn
          from (select * from dczd order by dczd.dczd_dm) view1
         where rownum < 10) view2
 where rn > 2;

你可能感兴趣的:(oracle)