0

I have a OneToOne relationship like this :-

Person                            Others
-----------                      ------------- 
| id  (PK) |  <----------------->| id(PK)(FK) |
-----------                      -------------
| name     |                     |....        |
| address  |                     |....        |
| ....     |                     |....        |

Here person table's id is auto-generated, but Others table's id is a foreign key. How can I link these two tables.

2

1 Answer 1

0

You can forget about the foreign key stuff and keep coninue in normal one to one mapping relation.For more details how to connect two tables when one has no primary key

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.