paradox DB是否允许分页?

时间:2011-09-13 15:20:24

标签: sql pagination paradox

在SQL Server中我可以使用它:

DECLARE @PageNum AS INT;
DECLARE @PageSize AS INT;
SET @PageNum = 2;
SET @PageSize = 10;

WITH OrdersRN AS
(
    SELECT ROW_NUMBER() OVER(ORDER BY OrderDate, OrderID) AS RowNum
          ,OrderID
          ,OrderDate
          ,CustomerID
          ,EmployeeID
      FROM dbo.Orders
)

SELECT * 
  FROM OrdersRN
 WHERE RowNum BETWEEN (@PageNum - 1) * @PageSize + 1 
                  AND @PageNum * @PageSize
 ORDER BY OrderDate, OrderID;

是否有可能在Paradox中做类似的事情?

1 个答案:

答案 0 :(得分:0)

简答:否(至少不使用SQL)