深度解析MySQL创建关联表

复制mysql> create table parts( -> cpu char(20) not null,深度 -> index(cpu) -> )engine=innodb; Query OK, 0 rows affected (0.01 sec) mysql> create table pc( -> cpumodel char(20) not null, -> index(cpumodel), -> foreign key(cpumodel) references parts(cpu) -> )engine=innodb; Query OK, 0 rows affected (0.01 sec) 1.2.3.4.5.6.7.8.9.10.11.12.13.