📅  最后修改于: 2022-03-11 14:54:08.757000             🧑  作者: Mango
SET @row_number = 0;
SELECT
(@row_number:=@row_number + 1) AS num,
firstName,
lastName
FROM
employees
ORDER BY firstName, lastName
LIMIT 5;