これらの2つのクエリを組み合わせるにはどうすればよいですか?これらの2つの内部結合クエリを結合する方法
SELECT characters.name Name,characters.image Image,matchups.char1wins Char1Wins,matchups.char2wins Char2wins,matchups.draws Draws
FROM characters INNER JOIN matchups
ON (char1=6) WHERE ( characters.ID = matchups.char2)
SELECT characters.name Name,characters.image Image,matchups.char1wins Char1Wins,matchups.char2wins Char2wins,matchups.draws Draws
FROM characters INNER JOIN matchups
ON (char2=6) WHERE (characters.ID = matchups.char1)
CHAR1とCHAR2は何ですか? –
どこのc.ID IN(m.char1、m.char2) – Strawberry