MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Generated Keys

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
db2patient
Beginner


Joined: 26 Jan 2006
Posts: 9
Topics: 5

PostPosted: Thu Mar 08, 2007 3:53 pm    Post subject: Generated Keys Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Mar 09, 2007 10:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
db2patient
Beginner


Joined: 26 Jan 2006
Posts: 9
Topics: 5

PostPosted: Fri Mar 09, 2007 9:40 pm    Post subject: Reply with quote

Thank you sir. I appreciate all your help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group