Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了一个ER图
Department(Dno,Dname,Phone,address) 其中电话和地址是多值属性。
最少形成多少张表格?会是2还是3?据我说应该是 3 但答案是 2。有人可以向我解释吗?
您需要先指定主键。如果我假设 Dno 是 PK 那么这个属性 address 和 Phone 可以分为更多的列,例如 address 可以分为 City、Street、Zip 和 Phone 可以分为 Phone1 Phone2。这样的划分会将此关系转换为 1NF,并且不会出现异常。