SQL仅选择列上具有最大值的行[重复]
问题: Want to improve this post? 想要改善这篇文章吗? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. 提供此问题的详细答案,包括引文和为什么答案正确的解释。 Answers without enough detail may be edited or deleted. 答案不够详细的答案可能会被编辑或删除。 This question already has answers here : 这个问题已经在这里有了答案 : Retrieving the last record in each group - MySQL (25 answers) 检索每个组中的最后一个记录-MySQL (25个答案) Closed 8 months ago . 8个月前 关闭。 I have this table for documents (simplified version here): 我有此表用于文档(此处为简化版): +------+-------+--------------------------------------+ | id | rev | content | +------