我得到了:
ORA-00918:列模糊定义 00918. 00000 - “栏目含糊不清”
每当我尝试跑步时:
select
first_name as student_first_name,
last_name as student_last_name
from super_student ss
inner join sub_distance_learning sdl
on sdl.student_id = ss.id
inner join sub_academic_tutor sat
on sat.id = sdl.academic_tutor_id
inner join super_sub_lecturer ssl
on ssl.id = sat.lecturer_id
inner join super_employee se
on se.id = ssl.employee_id;
错误仅在包含此错误时显示:
inner join super_employee se
on se.id = ssl.employee_id;
有什么想法吗?
答案 0 :(得分:4)
显然,多个表格中包含first_name
和/或last_name
,大概是super_student
和super_employee
。
使用您很好定义的表别名:
select ss.first_name as student_first_name,
ss.last_name as student_last_name