Please help me, Is it possible to insert unique value in Primary key column and duplicate corresponding value in foreign key column table?
I need to insert unique value in Primary key column and duplicate corresponding value in foreign key column. Like a field wih S01, S02, S03 in primary key column and many S01 , S01 in foreign key column table
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Yes it is possible, that is the basic use of primary and foreign key, generally if you make a column as primary key it will not allow you to insert duplicate
Primary key column will never allow you to insert duplicate records. Also one thing you should always remind we cant create more than one primary key column in a table
Biswa Pujarini MohapatraPosted Jun 8, 2014, 4:58 PM
Bidyasagar MishraPosted Apr 19, 2017, 2:34 AM
Manchana ShresthaPosted Jun 8, 2014, 9:38 PM