【发布时间】:2016-09-15 17:42:46
【问题描述】:
我目前正在使用 MySQL,我需要从 3 个表中进行选择。我有 3 张桌子:Game、Game_genre 和 cmets。
Game_genre 表 where GameID and GenreID is the PK
我试过的是
SELECT G.GameTitle, G.Company, G.ReleaseDate, G.Description, G.Price, GG.GenreName, G.Preowned, G.ImagePath, round((G.Price*0.8),2)'SalesPrice'
from game G, game_genre GG, comments C
LEFT JOIN C ON G.GameID
LEFT JOIN GG on G.GameID
WHERE G.GameID = GG.GameID;
但是,即使我为每个表指定了别名,也会出现 1066 的错误
【问题讨论】: