使用这个简化的例子;您认为哪种方法更好,为什么?
编辑:关系必须是 1 对 1。一个学生只存在于一所学校。
Option1
**Table Schools:**
id int primary key;
name string;
**Table students:**
id int primary key;
name string;
idSchool int;
Option2
**Table Schools:**
id int primary key;
name string;
**Table Students:**
id int primary key;
name string;
**Table SchoolsStudents**
idSchool int;
idStudent int;
idSchool, idStudent as primary key;