MYSQL组内排序

xiaoxiao2021-02-28  28

MYSQL 组内排序

group_concat + order by

SELECT id,substring_index(GROUP_CONCAT(id ORDER BY score desc),',',3) as num from test GROUP BY class
转载请注明原文地址: https://www.6miu.com/read-1700012.html

最新回复(0)