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.
私の状況は次のとおりです。ユーザーとスコアの2つのmysqlテーブルがあります。
テーブルuserは、id、name のようなものです。テーブルのスコアは次のようになります: id, point, user_id;
ハイスコアを記録した 10 人のユーザーの名前を取得したいのですが、どのようなクエリを使用すればよいかわかりません。誰かが私を助けることができますか?
これを使って:-
SELECT * FROM user as u,scores as s Where u.id = s.user_id ORDER BY s.point DESC LIMIT 10