分页查询(通用型)
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;