|
View previous topic :: View next topic
|
| Author |
Message |
msnreddy
New User
Joined: 09 Jun 2004 Posts: 4 Location: Bangalore
|
|
|
|
| Can anybody clarify my doubt? Can we create more then one primary key in a table? if create is there any limit? [/url] |
|
| Back to top |
|
 |
imvs
New User

Joined: 12 May 2004 Posts: 33
|
|
|
|
msnreddy
A table cannot have more than one primary key , however
1) a primary key can have more than one column(max of 64 columns)
2) Another way to allow only unique values in a column is to create a table using the UNIQUE clause of the
CREATE TABLE or ALTER TABLE statement. |
|
| Back to top |
|
 |
khamarutheen
Active Member

Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
hi frnd,
u cannot have more than one primary key in a single table. since that is the key value where v r going to refer the particular record. |
|
| Back to top |
|
 |
|
|