Settings | Sign in | Sign up

The author has 1 post.

查找每组含有最大字段的整条记录的方法

Floor 1 120.94.223.* 6/13/17 11:00

表中有ID, Name, Value字段。

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

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.