能力值:
( LV2,RANK:10 )
|
-
-
|
能力值:
( LV2,RANK:10 )
|
-
-
|
能力值:
( LV2,RANK:10 )
|
-
-
问下这个SQL语句怎么构造
---前提外键关联的表 “备件信息” 和 “产品” 已存在
creat table 主机备件配置
备件编号 varchar(10) FOREIGN KEY REFERENCES 备件信息(备件编号) ON DELETE\UPADTE
主机编号 varchar(10) FOREIGN KEY REFERENCES 产品(产品编号) ON DELETE\UPADTE
---前提外键关联的表 “备件信息” 、“产品” 和 “主机备件配置”已存在
ALTER TABLE 主机备件配置
ADD CONSTRAINT [约束名任意] FOREIGN KEY(备件编号) REFERENCES 备件信息(备件编号) ON DELETE\UPADTE
ADD CONSTRAINT [约束名任意] FOREIGN KEY(主机编号) REFERENCES 产品(产品编号) ON DELETE\UPADTE
---外键还有很多约束条件选项自己查---
---重要的不要忘记给钱 兄弟!!!
|