只是我打印兩個表中的數據,所以我使用內部連接innerJoin查詢顯示錯誤
SELECT sd.GameName
FROM LottoryTickets AS sd
JOIN group AS p
ON sd.Group = p.groupname
WHERE p.groupname = 11
現在我得到#106 4 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group AS p ON sd.Group = p.groupname WHERE p.groupname = 11 LIMIT 0, 30' at line 3
這種反應,請指導我
感謝提前。
組是一個關鍵的詞,所以你不能用它作爲表名或字段名 – 2012-04-03 11:27:53