sql代码是:
CREATE VIEW register as select
a.delRef, a.delName, b.eventRef, c.venueRef, c.eventDate,
c.courseRef,d.venueRef, d.courseTitle
from delegate a
inner join booking b
on a.delRef =b.delRef
inner join event c
on b.eventRef = c.eventRef
inner join venue d
on c.venueRef = d.venueRef
where presenter=0;
我一直收到错误Unknown column 'd.courseTitle' in 'field list'
请指教,非常感谢
答案 0 :(得分:0)
查看上面的“新代码”注释,我在SELECT子句中看到了一个d.courseTitle,但是没有将表中的JOIN别名为d。
关于c.courseRef = d.courseRef的内部联接课程
任何机会,这应该是'内部加入课程......'?