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

Which is better Oracle or MS SQL? Why?

6382


When system tablespace is created?

1036


State all possible different index configurations a table can possibly have?

994


How to write date and time literals in oracle?

998


What is sequence?

1076


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

1009


How to create a new table by selecting rows from another table?

1081


Which is faster join or subquery in oracle?

989


What is raw datatype in oracle?

1130


Explain the importance of .pll extension in oracle?

1003


List out the components of logical database structure of oracle database.

1034


What is a named program unit?

1071


How much memory your 10g xe server is using?

1100


What happens to the indexes if a table is recovered?

989


Name the three major set of files on disk that compose a database in Oracle?

1119