Errors when altering tables ro create foreign keys [message #90530] |
Tue, 27 January 2004 09:47 |
Paul
Messages: 164 Registered: April 1999
|
Senior Member |
|
|
hi! im having the following problem - when i type in the following to alter my tables to include foreign keys i get the following message
SQL> alter table comp_products
2 add constraint comp_products_Mrkt_Seg_Id_fk foreign key(Mrkt_Seg_Id) references Mrkt_Segment(Mr
kt_Seg_Id);
add constraint comp_products_Mrkt_Seg_Id_fk foreign key(Mrkt_Seg_Id) references Mrkt_Segment(Mrkt_Se
*
ERROR at line 2:
: cannot validate (100.COMP_PRODUCTS_MRKT_SEG_ID_FK) - parent keys not found
is this because my fields have the same name or is it something else? would greatly appreciate the help!
|
|
|
|