There is currently 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1116 0
查找每组含有最大字段的整条记录的方法
120.94.223.*
Reply
Floor 1 Posted at: 6/13/17 11:00

表中有ID, Name, Value字段。

SELECT *
FROM T AS main
WHERE Value = (SELECT MAX(Value) FROM T WHERE name=main.name);

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1116 Replies: 0
Author: 120.94.223.*
Last reply: 120.94.223.*
Last reply time: 6/13/17 11:00
Announcements