我有 3 张桌子
Table 1: PlantName (primary key)
Table 2: (primary key(Id + PlantName)), foreign key(PlantName) references Table1(PlantName)
Table 3: (primary key(Id + PlantName)), foreign key(id) references Table2(id)
When I insert data into these tables
Table1: Ark1
Ark2
Ark3
Table 2:
1,Ark1
2,Ark1
3, Ark1
1, Ark2
2, Ark2
1, B1
2, B2
Table 3:
1,Ark1
2,Ark2
在表 3 中插入时,外键存在问题。
请建议
谢谢
太阳