Database choice for creating two connected tables?

前端 未结 3 1797
借酒劲吻你
借酒劲吻你 2021-01-25 07:24

I have to database tables \"Courses\" and \"Students\".

  • Courses table has columns (\"_id\", \"course_name\", \"course_number\").
  • Student table has column
3条回答
  •  太阳男子
    2021-01-25 08:23

    Student (id, name, number) Course (id, name, number) StudentsCourses (student_id, course_id)

    You have to make a many to many relation.

提交回复
热议问题