.NET C# 从SQL2005 查询分页 每页10条记录 数据库TABLE 4个字段自己写到中途就不对了高手速度解答

日期:2021-05-27 09:08:00 人气:1

.NET C# 从SQL2005 查询分页 每页10条记录 数据库TABLE 4个字段自己写到中途就不对了高手速度解答

with ot as
(
select * rownumber() over(order by id desc) as ro from SaveTicketNum
)
select * from ot where ro>10 and ro<20
这样就可以去到大于10页,小于20页的数据。具体你可以看一下
    A+
热门评论