我有 2 个表,简化后如下所示:
import { Popover,PopoverButton,PopoverPanel } from '@headlessui/vue'
export default {
name: "Home",components: {
MenuButton,UserStats,NotificationCenter,Popover,PopoverPanel
},
每个玩家可以有多个与任何服务器相关联的分数。而一个服务器,对应一个游戏。
现在我想执行一个 select 语句,它在每场比赛中返回玩家的最高分数。像这样:
Name Server_id score
-----------------------------
John 1 300
John 2 400
Mary 2 321
John 1 100
Mary 1 50
Mary 2 10
Server_id game
-------------------
1 pong
2 Mario