sql分页

select*from (select row_number() over(orderby id) as[rows], *fromtable) as t where t.[rows]>=@startand t.[rows]<=@end
原文地址:https://www.cnblogs.com/hllive/p/5932033.html