SELECT
account,
(@i:=@i+1) AS rows
FROM
s_user,
(SELECT @i := 0) AS it
ORDER BY
account DESC
mysql 为结果生成 序号
最新推荐文章于 2024-09-21 23:10:26 发布
SELECT
account,
(@i:=@i+1) AS rows
FROM
s_user,
(SELECT @i := 0) AS it
ORDER BY
account DESC