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.
我有下表:
我想知道,哪个 id 得分最低。我如何使用 MySQL 来做到这一点?
PS我知道如何使用嵌套SELECT(选择最小值,选择具有最小值的ID,如果只需要一个则选择最小的ID),但必须有更简单的方法来解决问题。
SELECT `id` from `table` order by score asc limit 1