日期:2014-05-16  浏览次数:20478 次

db2最简单的分页
SELECT * FROM    

(     

 SELECT B.*, ROWNUMBER() OVER() AS RN FROM    

(     
SELECT * FROM <TABLE_NAME>     

) AS B     

 )AS A WHERE A.RN BETWEEN <START_NUMBER> AND <END_NUMBER>;