首页 > 代码库 > sql分页

sql分页

select * from (select row_number() over(order by id) as num, * from table) as t where t.num>=@start and t.num<=@end

 

sql分页