select Sturent.stdName as StudentName,
Subject.subjectName as SubjectName,
Lecturer.lecName as LecturerName,
Subject.creditHour as CreditHour,
Subject.studyMode as StudyMode from Student
join Student-subject on student.stdID= Student-subject.student_userID
join Subject on Student-subject.subjectCode = subject.subjectCode
join Lecturer-subject on Lecturer-subject.subjectID = subject.subjectCode
join Lecturer on Lecturer-subject.lec_userID = lectrer.lecID
或
select Sturent.stdName as StudentName,
Subject.subjectName as SubjectName,
Lecturer.lecName as LecturerName,
Subject.creditHour as CreditHour,
Subject.studyMode as StudyMode from Student, Student-subject,
Subject, Lecturer-subject, Lecturer
where student.stdID= Student-subject.student_userID
and Student-subject.subjectCode = subject.subjectCode
and Lecturer-subject.subjectID = subject.subjectCode
and Lecturer-subject.lec_userID = lectrer.lecID
添加一些虛擬數據 – 2015-03-03 07:51:22
是和什麼是列什麼是數據?你試過了什麼? – 2015-03-03 07:51:39
我已經使用列名編輯帖子。 – 2015-03-03 08:01:05