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.
与某事有真正的斗争。我有一个包含以下内容的灯具列表:
主队、客队、日期、时间、赛季、比赛。
我希望能够加入/分组主队和客队,这样我就可以按此对我的结果进行分组。所以基本上我每支球队只会得到一个固定装置。在我以某种方式将主队和客队作为一列加入之前,我显然无法做到这一点。
有什么想法我会怎么做?
尝试使用 CONCAT() 函数:
SELECT CONCAT(hometeam, '-', awayteam) as fixture , date, time, season, competition FROM teams GROUP BY fixture