我需要把一些东西放在我的数据库中,以便检查他们拥有的课程,但哪一种方法更好。
{
Table1
Rows:
studentID,
lessonID,
hasPerfectCourse,
courseID,
}
或
{
Table1
Rows:
studentID,
lessonID
Table2
Rows:
studentID,
hasPerfectCourse,
courseID
}
and they both do the same thing, but I would like to know which one is better f或 perf或mance
EDIT so if the student passed all his exams he ll have a perfectcourse and will just get a courseid so it s possible to get all the lessons with that courseid and if the student doesn t have a perfectcourse, f或 example he/she still have lessons from the first year while he/she is in the third year with also some lessons from the second year hope I made myself understandable because i m not the best person to explain something :D /EDIT Greetz, Haroun