我无法运行此查询,错误可能出在哪里,因为没关系。谢谢
CREATE PROCEDURE Test
@PageSize int,
@PageNumber int
AS
SELECT
PK_ID, Test, Descripcion
FROM
(SELECT
PK_ID, Test, Descripcion,
ROW_NUMBER() OVER (ORDER BY Test, PK_ID) AS RowNumber
FROM
Mydatabase
) AS Test
WHERE
RowNumber BETWEEN @PageSize * @PageNumber AND @PageSize * (@PageNumber)