Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 定义模糊的列_Sql_Oracle - Fatal编程技术网

Sql 定义模糊的列

Sql 定义模糊的列,sql,oracle,Sql,Oracle,我得到: ORA-00918:定义不明确的列 91800000-“定义不明确的列” 每当我尝试跑步时: 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

我得到:

ORA-00918:定义不明确的列 91800000-“定义不明确的列”

每当我尝试跑步时:

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;

有什么想法吗?

显然,不止一个表中有
名字和/或
,大概是
超级学生
超级员工

使用您精确定义的表别名:

select ss.first_name as student_first_name, 
       ss.last_name as student_last_name

显然,不止一个表中有
first\u name
和/或
last\u name
,大概是
super\u student
super\u employee

使用您精确定义的表别名:

select ss.first_name as student_first_name, 
       ss.last_name as student_last_name