设为首页 - 加入收藏  
您的当前位置:首页 >IT科技 >深度解析MySQL创建关联表 正文

深度解析MySQL创建关联表

来源:亿华互联编辑:IT科技时间:2025-11-05 02:41:47
深度解析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.

1.1469s , 11626.4765625 kb

Copyright © 2025 Powered by 深度解析MySQL创建关联表,亿华互联  滇ICP备2023000592号-16

sitemap

Top