我下面的查詢shoqing一個非常奇怪的錯誤:內連接問題mysql的
說法是正確的
SELECT
users.age,
users.firstname,
users.lastname,
users.`gender`,
users.username,
users.`password`,
users.id_user_type,
gender.id
FROM
user_types
INNER JOIN users ON `gender`.id = users.gender
性別也有ID,性別爲兩列
錯誤我是另一個表越來越
[SQL]SELECT
users.age,
users.firstname,
users.lastname,
users.`gender`,
users.username,
users.`password`,
users.id_user_type,
gender.id
FROM
user_types
INNER JOIN users ON `gender`.id = users.gender
[Err] 1054 - Unknown column 'gender.id' in 'on clause'