我如何保留錯誤1248(42000):每個派生表都必須有自己的別名?我已經給每個表都有自己的別名,不是嗎?抱歉,我不太確定我在這裏做錯了什麼,因爲我在MySQL的第一個學期。錯誤1248(42000):每個派生表都必須有自己的別名
SELECT p.PlayerAlias as "Player",
s.HiScore as "Score"
FROM Player as p INNER JOIN Score as s ON p.PlayerID = s.PlayerID
LEFT OUTER JOIN (
SELECT g.GameID
FROM Game as g
WHERE g.GameName = "Reaper"
) ON s.GameID = g.GameID
WHERE s.HiScore < 7000 AND s.HiScore > 4000;
')ON = s.GameID g.GameID'應成爲')爲g ON s.GameID = g.GameID' –
在錯誤_derived_表中指的是你的子查詢。 – Uueerdo
它很有趣。我首先寫了答案,並且接受被授予其他人。 – FallAndLearn