如何删除数据库中的错误?

时间:2016-05-19 14:57:56

标签: mysql

我正在我们学校完成作业,但是当我点击GO时,它会继续说明这样的错误:

  

1066 - 不唯一的表/别名:' term_info_tbl。

这是我的代码:

SELECT stud_personal_info.lname,
       subject_tbl.subject_code,
       term_info_tbl.SY
FROM stud_personal_info,
     subject_tbl,
     term_info_tbl,
     stud_subject_tbl
INNER JOIN stud_personal_info ON stud_subject_tbl.stud_id = subject_tbl.sc_id
INNER JOIN term_info_tbl ON stud_subject_tbl.term_id = term_info_tbl
WHERE 1;

1 个答案:

答案 0 :(得分:0)

您似乎错过了联接中的列名称。

INNER JOIN term_info_tbl ON stud_subject_tbl.term_id = term_info_tbl。[MISSING COLUMN]