的表中的最新條目列表這類似於我有表:如何以檢索每個「播放器」
+-----------+--------+
| Player id | Score |
+-----------+--------+
| User 1 | 10 |
| User 2 | 22 |
| User 1 | 17 |
| User 3 | 34 |
| User 4 | 23 |
| User 2 | 12 |
| User 3 | 10 |
| User 4 | 30 |
+-----------+--------+
我也有各行的時間戳。
什麼是最好的方式來獲得每個'球員'最近的行。像下面這樣的結果:
+-----------+--------+
| Player id | Score |
+-----------+--------+
| User 1 | 10 |
| User 2 | 22 |
| User 3 | 34 |
| User 4 | 23 |
+-----------+--------+
請檢查。我編輯了代碼 –