-1
我想比較行結果並在特定列具有相同的fightID時創建新列。比較行結果並創建新列
我的查詢:
Fight Fight Date Player PlayerScore 1 2014-10-10 Kevin 8 1 2014-10-10 Chris 4 2 2014-09-01 Kevin 8 2 2014-09-01 Eric 4
我想要的結果:
Fight Fight Date Player1 Result1 Player2 Result2 1 2014-10-10 Kevin 8 Chris 4 2 2014-09-01 Kevin 8 Eric 4
順便說一句 - 我是新來的,一般
PHP/MySQL和編程PHPSELECT fight.fightdato, fight.fightID, players.name,
playersfight.playerid, playersfight.playerScore
FROM fight
INNER JOIN playersfight ON fight.fightID = playersfight.fightID
INNER JOIN players ON playersfight.playerID = players.playersID
結果
Thanks fo fo幫助我!
2行中缺少分號。 感謝您的幫助:) – Lasse 2015-02-07 19:57:25
是的,我已經修復它,謝謝。 – 2015-02-07 20:08:00