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 / bhushan tatar

column having primary key constraint should not contain
null values.

column having unique key constraint can contain null values.


Unique as well as primary key constraint can be
defined/applyed on more than one column.
EX.
ADD constraint uc_person UNIQUE(P_Id,Lastname)
ADD constraint uc_person PRIMARY KEY(P_Id,Lastname)

But whle creating table we can write unique key word
multiple time and primary key wprd only once.Because table
can have only one primary key and can have miltiple unique
key.But both can apply on more than one column.
and

Is This Answer Correct ?    10 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can group functions be used in the order by clause in oracle?

939


What is a proxy object?

1005


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

942


How oracle handles dead locks?

1017


How to unlock the sample user account in oracle?

915


What is format trigger?

2009


How to write a query with a right outer join in oracle?

1108


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

966


how can we store any pdf file in oracle

2093


What happens if variable names collide with table/column names?

1097


What is the difference between sharding and partitioning?

925


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

954


Why do we need oracle client?

881


hello friends Im doing my final year engineering in B.Tech.. one of uncle said he can provide job in his company if im good in database management. but i have only basic knowledge about database, so like to join database management course in good intuition. so friends kindly help me to get good intuition because its my future.

2195


What is the difference between a hot backup and a cold backup in oracle?

951