Oracle分页

select * from (select id,
       ysxm,
       yszc,
       scly,
       wzzc,
       ks_id,
       gxriqi,rownum as rowno,
       czry,
       gl,
       xb,
       csrq,
       ssnaks,
       yyks,
       ysks
  from (select t.id,
               t.ysxm,
               t.yszc,
               t.scly,
               t.wzzc,
               t.ks_id,
               t.gxrq gxriqi,
               t.czry,
               t.gl,
               t.xb,
               t.csrq,
               t.ssnaks,
               yyks.ksmc yyks,
               ysks.ksmc ysks--,
               --rownum as rowno
          from NHNT_NAYSGL_YSXXGL t,
               nhnt_naysgl_yyksgl yyks,
               nhnt_naysgl_ysksgl ysks
         where 1 = 1
           and t.ks_id = yyks.id
           and t.ssnaks = ysks.id
         order by gxriqi desc))
 where rowno between 11 and 20
 order by gxriqi desc;


 

你可能感兴趣的:(Oracle分页)