表A中有100条记录,用sql显示50到100条的记录(全部字段),谢谢!

解决方案 »

  1.   

    select *
        from 
           (
           select a.*.rownum rn
                  from a
               where rwonum<=100 
           )
     where rn>=50
      

  2.   

    上面的rownum<=100里的写错了select *
        from 
           (
           select a.*.rownum rn
                  from a
               where rownum<=100 
           )
     where rn>=50