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.

user5134764Jun 25 2018 — edited Jun 25 2018

Experts,

We have a table as emp which has emp_no, mobile_no,address_id colums in compound primary key. But whenever i wish to add emp_no in while creating Emp_address table as Foreign key it is errored . When i add all three columns as foreign key then able to create table. Is there any way only add emp_no as foreign key. Please suggest us.

ORA-02270: No matching unique or Primary key for this column list.

Class : A references clause in a created or Alter table statement gives a column list for which there is no matching unique or primary key constraint in the reference table.

Thanks & Regards.

JP

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2018
Added on Jun 25 2018
1 comment
1,564 views