表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)
Copyright @ 2007 MinTao学以致用网(www.mintao.net) Inc All Rights Reserved. QQ:543098146 QQ:261561092 QQ:179647303 MSN:min906@126.com 站长:MinTao 信息产业部ICP备案号:鄂ICP备07500065号