例如:表
user temp rank
u1 a 2
u1 b 0.5
u1 c 3
u2 aa 1.7
u2 cc 3
u3 dd 2
我希望拿到u1,b
u2,aa
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
假设你的表名是test:
楼上的是正解。