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);



你可能感兴趣的:(oracle,算法,mysql,db2)