表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-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18