表test
id name record1 a 882 b 763 c 66
4 c 905 b 776 a 56
7 b 77 8 c 679 a 44获取a b c...的最大记录数的id号select hh.id,hh.name,hh.record from test as hh where hh.record = (select max(record) from test where name=hh.name)