1、使用TOP
--每页10条 查询第2页
declare @page int,@limit int
set @page=2 set @limit=2
select top(@page) *
from Province
where Id not in (select top(@limit*(@page-1)) id from Province order by Id)
2、使用OFFSET 进行分页
--每页10条 查询第2页
declare @page int,@limit int
set @page=2 set @limit=10
select *
from Province order by id
offset (@limit*(@page-1)) rows ---跳过的条数
fetch next (@limit)rows only ---获取的条数