查询倒序

SELECT
*
FROM
(
SELECT
ROW_NUMBER() OVER( ORDER BY (SELECT 1) ) NO, *
FROM
[testdb].[dbo].[]
) subQuery
ORDER BY
NO DESC;

你可能感兴趣的:(查询倒序)