分页查询(通用型)

set statistics time on;

-- 分页查询(通用型)
select * from UDT_WMS_OrderInfo order by Order_Code
offset ((@pageIndex-1)*@pageSize) rows
fetch next @pageSize rows only;


select * from UDT_WMS_OrderInfo order by BasicBegin
offset ((400)*50) rows
fetch next 50 rows only;

posted @ 2021-12-27 15:49  毛小毛  阅读(39)  评论(0编辑  收藏  举报