📅  最后修改于: 2022-03-11 15:05:21.135000             🧑  作者: Mango
SELECT * FROM (
SELECT
ROW_NUMBER() OVER (ORDER BY key ASC) AS rownumber,
columns
FROM tablename
) AS foo
WHERE rownumber <= n