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 / dpkar

Primary Key:
Primary key will create column data uniqueness in the table.
Primary key will create clustered index by default
Only one Primay key can be created for a table
Multiple columns can be consolidated to form a single
primary key
It wont allow null values.

Unique Key :

Unique key constraint will provide you a constraint like
the column values should retain uniqueness.
It will allow null value in the column.
It will create non-clustered index by default
Any number of unique constraints can be added to a table.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check the server version in oracle?

1032


What are the ways tablespaces can be managed and how do they differ?

2270


What is rich query?

926


Explain the use of Merge statement in oracle 11g

975


What is a cursor in oracle?

1106


How to convert a date to char in oracle? Give one example.

1000


What is the usage of save points in oracle database?

907


What is an oracle tablespace?

982


What are internal user account in oracle?

947


Explain drop constraint oracle?

988


What do you mean by merge in oracle and how can you merge two tables?

904


How to create a new table in oracle?

1064


How to compare dates in oracle sql?

1040


What happens if you lost a data file?

978


How can we create the complete backup of data in the oracle.

2091