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

What is Segment Advisor in Oracle?

1105


How to convert characters to dates in oracle?

1102


Point out the difference between user tables and data dictionary?

983


How to execute a stored procedure in oracle?

1091


What is private procedure oracle?

1012


How to sort the query output in oracle?

1028


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1884


Why do we use bulk collect in oracle?

1058


What query tells you how much space a tablespace named test is taking up, and how much space is remaining?

2276


What is the string concatenation operator in oracle?

1177


How many memory layers are in the oracle shared pool?

1184


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

2291


Explain the use of show option in imp command.

1098


What is integrity and what is constraint??Explain with example

2284


Explain the truncate in oracle?

967