Possible Duplicate:
Was: Not unique table :: Now: #1054 - Unknown column - can't understand why?
在解决了此查询的前一个问题之后,我现在不得不处理以下错误:
1054-“on子句”中的未知列“calendar_events.jobID”
我无法理解为什么。。。而且专栏居然存在!是不是和什么地方。。。查询的底部部分?
SELECT calendar_events.* ,
calendar_users.doctorOrNurse,
calendar_users.passportName,
calendar_jobs.destination
FROM `calendar_users` , `calendar_events`
INNER JOIN `calendar_jobs` ON `calendar_events.jobID` = `calendar_jobs.jobID`
WHERE `start` >=0
AND calendar_users.userID = calendar_events.userID
任何帮助都将不胜感激!
干杯
最佳答案
You should use `calendar_events`.`jobID` instead of `calendar_events.jobID`.
关于mysql - #1054-未知列-SQL查询问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3021587/