3
Move1 Move2
Fire Ice
Grass Fire
Ice Grass
表2
Move Power
Fire 40
Grass 30
Ice 20
我有這兩個表,但是當我運行在WAMPServer這個SQL語句,我沒有得到任何行返回:
SELECT *
FROM Table1, Table2
INNER JOIN Table1 as Hello ON Hello.move1 = Table2.move
INNER JOIN Table1 as Meow ON Meow.move2 = Table2.move
這兩個表都在同一個數據庫下,所以我看不到我的錯誤。我希望它會返回類似...
表1
Move1 Move2 Move Power Move Power
Fire Ice Fire 40 Ice 20
Grass Fire Grass 30 Fire 40
Ice Grass Ice 20 Grass 30
我有什麼錯?