View previous topic :: View next topic
|
Author |
Message |
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hai
i want difference b/w primary key and unique key.
maximum number of primary key's for a table.
ashwin |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hi Ashwin,
Unique key in the sense it will not have any value repeated to that particular key but primary key(also unique) makes the total row unique.
Thanks,
Anu |
|
Back to top |
|
|
unna
New User
Joined: 15 Oct 2004 Posts: 17
|
|
|
|
Hi,
I Suppose Primary key and unique key both mean the same .
Primary key is used for unique identification of a row and should not
have null values. There can be only one primary key for a table.
Thanks, |
|
Back to top |
|
|
veerababu
New User
Joined: 07 Nov 2004 Posts: 3
|
|
|
|
The main Difference is that
Primary key means ----- No Duplicates and No Nulls.
Unique key means ------ No Duplicates but Allows Nulls. |
|
Back to top |
|
|
veerababu
New User
Joined: 07 Nov 2004 Posts: 3
|
|
|
|
Hi,
veerababu wrote: |
The main Difference is that
Primary key means ----- No Duplicates and No Nulls.
Unique key means ------ No Duplicates but Allows Nulls. |
Thanks,
vb |
|
Back to top |
|
|
ksivapradeep
New User
Joined: 30 Jul 2004 Posts: 95
|
|
|
|
hello veera babu,
i think another diff b/w pkey and ukey is we can create more than one primary for a table and we cant create more than one ukey for a table is it correct r not.
regards,
siva pradeep |
|
Back to top |
|
|
i413678 Currently Banned Active User
Joined: 19 Feb 2005 Posts: 112 Location: chennai
|
|
|
|
the difference between unique and primary key is
primary key : notnull and unique
unique key is : avoids duplicates only.
more over one table can have only one primary key but more than one unique indexes.
any thing wrong or missed let me know.
Regards,
Pavan |
|
Back to top |
|
|
|