ysql查询最大值语句是:
1、方法1SELECT a.stuname,MAX(a.score) AS score FROM stuscore a GROUP BY a.`stuname` ;
2、方法2:使用连接SELECT a.stuname,a.score AS score FROM stuscore a JOIN
stuscore b ON a.`stuname`=b.`stuname`
GROUP BY a.`score` HAVING
如果觉得《mysql 查询分组 mysql中最大值的用法 – 数据库 – 前端 mysql流量》对你有帮助,请点赞、收藏,并留下你的观点哦!