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...


What is the difference between primary and unique key

Answers were Sorted based on User's Feedback



What is the difference between primary and unique key..

Answer / venkat rao

Unique key takes null value but primary key doesnot take
null value
primary key have properties of both null key and unique key
constraints

Is This Answer Correct ?    21 Yes 4 No

What is the difference between primary and unique key..

Answer / sudhanshu_kmr

.....primary key.......... unique key

at most one column .....:... any number of column

only unique values........... only unique values

don't accept null........... accept null

Is This Answer Correct ?    3 Yes 2 No

What is the difference between primary and unique key..

Answer / ashish asthana

Primay key restrict the duplicacy in the records and does
not accept null value or there are only one primary key in
a table

Unique constraint also restict the duplicacy but it accept
the null value one or more then one. We can apply unique
constraint more than one column

Is This Answer Correct ?    2 Yes 2 No

What is the difference between primary and unique key..

Answer / durai

primary key is does not allow duplicate which is contain not
null it is only once we can use in table

unique key allow null value

Is This Answer Correct ?    0 Yes 0 No

What is the difference between primary and unique key..

Answer / pradeep rajpoot

primary key no null value allow.
but unique key one null value is allow

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More MySQL Interview Questions

I have a table like this tblData (month int,Qty int) and i am inserting three rows in this table 1.tblData Values (1,100) 2.tblData Values (2,200) 3.tblData Values (3,300) The Result I want is the Running total of the field Qty that is 1 100 100 2 200 300 3 300 600 What is the Query for that ?

4 Answers  


What is required to create mysql database?

0 Answers  


Does mysql use tcp or udp?

0 Answers  


What is difference between mysqli and pdo?

0 Answers  


what is JOIN? Give example & types of join?

14 Answers   iMedia, Millennium, RAM Software, Satyam,


What is default schema in mysql?

0 Answers  


What is the maximum length of a table name, database name, and fieldname in MySQL?

3 Answers   Accenture, Pioneer, TISL,


What is difference between inner vs self vs cross?

0 Answers  


What is a mysql server?

0 Answers  


How do I save in mysql?

0 Answers  


Is mysql running ubuntu?

0 Answers  


What is localhost in mysql?

0 Answers  


Categories