views:

28

answers:

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.