+----------------+----------------+--------+-------+----------+----------------+
|Field | Type | Null | Key | Default | Extra |
+----------------+----------------+--------+-------+----------+----------------+
|id | int(11) | No | PRI | Null | auto_increment |
|modelNumber | varchar(150) | No | | | |
|manufacturer_id | int(11) | No | | | |
|name | varchar(100) | No | | | |
|department_id | int(11) | No | | | |
|class_id | int(11) | No | | | |
|subclass_id | int(11) | No | | | |
+----------------+----------------+--------+-------+----------+----------------+
+---------------+----------------+--------+-------+----------+-------------+
|Field | Type | Null | Key | Default | Extra |
+---------------+----------------+--------+-------+----------+-------------+
|department_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+---------------+----------------+--------+-------+----------+-------------+
+----------------+----------------+--------+-------+----------+---------------+
|Field | Type | Null | Key | Default | Extra |
+----------------+----------------+--------+-------+----------+---------------+
|manufacturer_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+----------------+----------------+--------+-------+----------+---------------+
+-----------+----------------+--------+-------+----------+----------+
|Field | Type | Null | Key | Default | Extra |
+-----------+----------------+--------+-------+----------+----------+
|class_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+-----------+----------------+--------+-------+----------+----------+
+---------------+----------------+--------+-------+----------+------------+
|Field | Type | Null | Key | Default | Extra |
+---------------+----------------+--------+-------+----------+------------+
|subclass_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+---------------+----------------+--------+-------+----------+------------+
我无法完全控制如何获取数据,因为我通过XML获取大量数据。我需要创建一个允许我扩展的数据库。
答案 0 :(得分:0)
如果classid
和subclassid
无关,则它位于3nf
而不是BCNF
,因为modelNumber
不是dependency
id
。但如果它们相关,那么即使在3nf