📜  结果集中的 sql 行号 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:51.904000             🧑  作者: Mango

代码示例1
SELECT 
    ROW_NUMBER() OVER (
            ORDER BY salary
    ) row_num, 
    first_name, 
    last_name, 
    salary
FROM
    employees;
Code language: SQL (Structured Query Language) (sql)