Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between primary key and unique key ?

Answer Posted / vaithianathan

primary key not accepts null value and
not allows duplicate values.
but Unique key not allows duplicate values
but it accepts ONLY ONE NULL VALUE.

only one primary key allowed per table
we can create multiple unique keys
on the table

By Default, Primary key creates Clustered Index and Unique key Creates Non Clustered Index

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sequence?

1136


What is oracle in java?

1016


How to drop an existing table in oracle?

1102


What privilege is needed for a user to query tables in another schema?

1030


Why does for update in oracle 8 cause an ora-01002 error?

1043


Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1831


Is it possible to split the print reviewer into more than one region ?

2338


How do you increase the OS limitation for open files (LINUX and/or Solaris)?

1975


How to run the anonymous block again?

1175


What are a cluster and non-cluster index?

1064


What is a directory object?

1136


How to shutdown your 10g xe server?

1203


What is the use of file param in imp command?

1215


How to use "out" parameter properly?

1123


Can you drop an index associated with a unique or primary key constraint?

1067