SELECT
id,
read_total,
(
SELECT
COUNT(read_total)
FROM
t_circle_topic
WHERE
ct.read_total <= read_total
) AS rank
FROM
t_circle_topic AS ct
ORDER BY
read_total DESC
SQL:将统计出来的结果进行名次排序
最新推荐文章于 2024-10-08 09:27:11 发布