查询MyStudents表中 第8页中的数据(每页3条记录)
--(1)
select * from
(
select *,
ROW_NUMBER()over(order by FId asc) as Rnumber
from MyStudents
)
as Tbl3
where Rnumber between (3*7+1) and 3*8
--(2)
select top 3 * from MyStudents
where FId not in
(select top (3*7) FId from MyStudents
order by FId )
order by FId
本博客展示了如何使用SQL查询语句从MyStudents表中获取第8页的数据,每页包含3条记录。
381

被折叠的 条评论
为什么被折叠?



