Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-02270: no matching unique or primary key for this column-list

SmithJohn45Jun 12 2022

working at apex.oracle.com
created a unique index on a table CF_INVESTORS (user_id)
now creating a foreign key on another table CF_DEPWIT referencing above table and unique index column, below are both statements, it is showing error subject mentioned.

CREATE UNIQUE INDEX "CF_INVESTORS_IDX1" ON "CF_INVESTORS" ("USER_ID")
/
alter table "CF_DEPWIT" add constraint
"CF_DEPWIT_CON" foreign key ("INVESTOR_ID") references "CF_INVESTORS" ("USER_ID")
/

image.pngwhat is wrong here ? or something i missed? please help.
regards

This post has been answered by jariola on Jun 12 2022
Jump to Answer
Comments
Post Details
Added on Jun 12 2022
2 comments
5,629 views