亿华智慧云亿华智慧云

深度解析MySQL创建关联表

深度解析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.
赞(72)
未经允许不得转载:>亿华智慧云 » 深度解析MySQL创建关联表