一,看原表

select * from `user`;

 

Mysql partition by
 

二,查询同组年级最大的

select 
username
,SUBSTRING_INDEX( GROUP_CONCAT(age order by age desc) ,',',1) uuid 
from 
(
select uuid
,username
,`password`
,age
from `user`
)b 
GROUP BY uuid asc;

 Mysql partition by

相关文章:

  • 2021-11-17
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案