Click here to Skip to main content
16,004,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys, is there any tutorial regarding on how to do this with examples plss ..... thanks
Posted
Updated 1-May-11 14:56pm
v2
Comments
janwel 1-May-11 20:49pm    
how to create a cluster key?
Peter_in_2780 1-May-11 21:29pm    
By definition, there can only be ONE primary key in a table. You can have other keys with various attributes, but there can only ever be one primary key.

1 solution

Have a look at the composite primary key concept - http://weblogs.sqlteam.com/jeffs/archive/2007/08/23/composite_primary_keys.aspx[^].
 
Share this answer
 
Comments
Peter_in_2780 1-May-11 23:14pm    
Good one. From the keys in the question, it looked like OP wanted multiple primary keys, not a composite key.
Abhinav S 2-May-11 6:37am    
Thanks. If that is the case, then your comment is the right answer - there can only be one primary key.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900