sqlserver分页

select *
from (
    select row_number()over(order by TempColmun)rowNumber,*
    from (select top 结束为止 0 TempColmun,* from mytable)t
)tt
where rowNumber>开始位置

你可能感兴趣的:(sqlserver分页)