数据库表包含目标动作。
type goal assist
goal Johnny James
goal Johnny James
goal James Bob
使用GROUP BY 目标时,辅助它显示
player goals assists
Johnny 2 0
Johnny 0 0
James 1 0
James 0 2
Bob 0 0
Bob 0 1
但我需要它在一条线上显示球员的进球和助攻。干杯。