:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Databases >> MySQL


Question What is the difference between primary and unique key
 Question Asked In Companies :: CSC,     < I also faced this Question! >
 Question Submitted By :: kamaltimalsina012
  Answer Posted By  
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

  ashish asthana
View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
Have you ever used MySQL Administrator and MySQL Query Browser? Describe the tasks you accomplished with these tools? 1919
How to enable or disable a row of a table using MySQL in struts? 1764
1)for snapshot replication which agents used? 2)for Transcation replication which agents used? 3)for merge replciation which agents used? 562
using primary can we relate two table, with out foreign key? 1087
Table A has 5 rows and table B has 0 rows Cartesian join on A,B will have----rows 14
How can you move the master database 409
What are the method you will follow while sql installing 764
how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers... 624
all the queries used in sql 952
In a property booking section want a query to check that property is booked from StartDate to EndDate.Booking Table field are given id proerty_id start_date checkout_date no_of_visitor booking date status Waiting yours answer.. Thanks In Advance... 1020 to fetch a value and Execute store procudure in mysql(INNODB) using phpMyAdmin? 2.can i wright a package in mysql database(INNODB)? 518
What are the critical issues you have resolved in your company 563
Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf? 2672
Explain the architecture models of SQL Server? 677
How to set the time zone for MySQL to particular country time? 1608
E-Mail New Answers        Answer Selected Questions