标签:ar art as size sql table rom select start
分页的SQL语句
sql="select * from (select row_number() over(orderby id) as num,* from table)as t where t.num>=@start and t.num<=@end";
分页的公式
int start=(pageIndex-1)*pageSize+1;
int end=pageIndex*pageSize;
标签:ar art as size sql table rom select start
原文地址:http://www.cnblogs.com/jkqblog/p/4135932.html