Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检索一列中包含 MAX 值的所有行和列。
例如:3 列 - ID(不是唯一的)、名称、年龄我想要所有包含年龄最大值的行和列。
谢谢
SELECT * FROM table WHERE age = (SELECT MAX(age) FROM table)
Select * from table where value=max(value)
也许你需要交换 where with have