S
SmallGhost
Unregistered / Unconfirmed
GUEST, unregistred user!
有如下表:
-----------------------------------------
name | icount
-----------------------------------------
n1 | 1
-----------------------------------------
n1 | 2
-----------------------------------------
n2 | 2
-----------------------------------------
n2 | 3
-----------------------------------------
有没有办法用一条SQL语句从取相同"name"字段中"iCount"最大的记录,结果因该如下:
-----------------------------------------
name | icount
-----------------------------------------
n1 | 2
-----------------------------------------
n2 | 3
-----------------------------------------
-----------------------------------------
name | icount
-----------------------------------------
n1 | 1
-----------------------------------------
n1 | 2
-----------------------------------------
n2 | 2
-----------------------------------------
n2 | 3
-----------------------------------------
有没有办法用一条SQL语句从取相同"name"字段中"iCount"最大的记录,结果因该如下:
-----------------------------------------
name | icount
-----------------------------------------
n1 | 2
-----------------------------------------
n2 | 3
-----------------------------------------