sql分页

select*from (select row_number() over(orderby id) as[rows], *fromtable) as t where t.[rows]>=@startand t.[rows]<=@end

 

posted @ 2016-10-05 12:04  hllive  阅读(130)  评论(0编辑  收藏  举报