我有3张桌子:(student,elective,student_elective)
student:
id,
name,
elective:
id,
name,
credits,
curriculum_id,
student_elective:
student_id,
elective_id,
subject_id,
preference_No,
status
{student_id, elective_id, subject_id }
:制作主键,
{student_id,elective_id , preference_No }
:应该是唯一的,
在学生选修课中
这里student_elective是选修和学生之间的关系表。 我们应该如何在续集中做到这一点?