sql="select * from (select row_number() over(orderby id) as num,* from table)as t where t.num>[email protected] and t.num<[email protected]";
分页的公式
int start=(pageIndex-1)*pageSize+1;
int end=pageIndex*pageSize;
时间: 2025-01-18 08:02:27
sql="select * from (select row_number() over(orderby id) as num,* from table)as t where t.num>[email protected] and t.num<[email protected]";
分页的公式
int start=(pageIndex-1)*pageSize+1;
int end=pageIndex*pageSize;