DISTINCT name,MAX(score) AS score,MIN(time) AS Time
FROM tb_data
GROUP BY name
ORDER BY time DESC
--DISTINCT()去重
--MAX(score)取得最高成绩
--MIN(time)取得最短用时
欢迎分享,转载请注明来源:内存溢出
DISTINCT name,MAX(score) AS score,MIN(time) AS Time
FROM tb_data
GROUP BY name
ORDER BY time DESC
--DISTINCT()去重
--MAX(score)取得最高成绩
--MIN(time)取得最短用时
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)