我要做一个listView高校分页,不知道sql语句怎么写,求大神帮帮忙
2 回答
萧十郎
TA贡献1815条经验 获得超13个赞
USE AdventureWorks2012;GOWITH OrderedOrders AS( SELECT SalesOrderID, OrderDate, ROW_NUMBER() OVER (ORDER BY OrderDate) AS RowNumber FROM Sales.SalesOrderHeader ) SELECT SalesOrderID, OrderDate, RowNumber FROM OrderedOrders WHERE RowNumber BETWEEN 50 AND 60;
可以参考一下
- 2 回答
- 0 关注
- 525 浏览
添加回答
举报
0/150
提交
取消