oracle的分页语句

 
 

SELECT   *
  FROM   (SELECT   ROWNUM num,
                   e.bid,
                   e.bookname,
                   e.publishtime,
                   e.press,
                   e.money
            FROM   (  SELECT   *
                        FROM   book
                    ORDER BY   bid ASC) e)
 WHERE   num >= 2(起始页号) AND num <= 6(终止页号);


两个参数传入即可,其它的就是修改相应的表名和字段名

你可能感兴趣的:(oracle的分页语句)