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

DB2,Mysql,Sqlserver,oracle分页算法,分页语句
Mysql
limit = ((feeds.getPageIndex() - 1) * 10 + 1) + ","
	 + (feeds.getPageIndex() * 10);



DB2,Sqlserver
select * from (select ROW_NUMBER() OVER() AS ROWNUM, msap.*  from msap_fund_det msap) d where ROWNUM between 11 and 20

((feeds.getPageIndex() - 1) * 10 + 1) + "," (feeds.getPageIndex() * 10);