Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Can a table have index with out having a primary key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
mighty

New User


Joined: 21 May 2008
Posts: 17
Location: chennai

PostPosted: Tue Jul 01, 2008 2:03 pm    Post subject: Can a table have index with out having a primary key
Reply with quote

Can a table have index with out having a primary key?
If yes what is the purpose of having it?
Back to top
View user's profile Send private message
References
PostPosted: Tue Jul 01, 2008 2:03 pm    Post subject: Re: Can a table have index with out having a primary key Reply with quote

nabarundas

New User


Joined: 21 Jun 2007
Posts: 19
Location: pune

PostPosted: Wed Jul 02, 2008 3:30 pm    Post subject:
Reply with quote

hi mighty,

Yes we can have Indexes without having Primary key.

The Indexes are in sorted order so searching will be faster.

Regards,
Nabarun
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1