View previous topic :: View next topic |
Author |
Message |
db2patient Beginner
Joined: 26 Jan 2006 Posts: 9 Topics: 5
|
Posted: Thu Mar 08, 2007 3:53 pm Post subject: Generated Keys |
|
|
Hi,
Can I use GENERATED IDENTITY columns as Primary and Foreign Key relation ship? I have two tables both of these tables have a GENRATED IDENTITY columns which are unique. Can I buid primary and foreign key relation each other on these two tables?
Thank you |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri Mar 09, 2007 10:43 am Post subject: |
|
|
db2patient,
As long as your primary and foreign keys are all numeric you can IDENTITY columns as primary and foreign keys.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
db2patient Beginner
Joined: 26 Jan 2006 Posts: 9 Topics: 5
|
Posted: Fri Mar 09, 2007 9:40 pm Post subject: |
|
|
Thank you sir. I appreciate all your help |
|
Back to top |
|
|
|
|