1
SELECT breakgame, Streak,
((SELECT (maxGameId - gameId) as gameGap
FROM game_result
WHERE game_result.breakgame >= kokopam.game_streak.breakgame
ORDER BY gameId DESC LIMIT 1)/ Streak) as nowWeight
FROM kokopam.game_streak, (SELECT max(gameId) as maxGameId FROM game_result ORDER BY gameId DESC LIMIT 1) maxGameId
WHERE breakgame>= 2
如何更改此查詢以使用連接?如何更改此查詢以使用連接?
請幫我
您可以共享表格架構嗎?我認爲這個查詢不會編譯。 – Khalil
你爲什麼要這樣做? – Strawberry
'(SELECT max(gameId)as maxGameId FROM game_result ORDER BY gameId DESC LIMIT 1)' - >'(SELECT max(gameId)as maxGameId FROM game_result)' –