ALLInterview.com :: 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  
 
Answer
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
 
what is mysql optimization in brief? 818
How internally data stores in MyISAM and INNODB table types? 933
Explain the architecture models of SQL Server? 814
using primary can we relate two table, with out foreign key? 1181
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... 1131
all the queries used in sql 1051
how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers... 704
What are the critical issues you have resolved in your company 638
How can you get your MySQL root password, if you lost it? 1059
How can you plan the logshipping before processing? 738
Have you ever used MySQL Administrator and MySQL Query Browser? Describe the tasks you accomplished with these tools? 2002
why not null is not allowed at table level 886
1.how to fetch a value and Execute store procudure in mysql(INNODB) using phpMyAdmin? 2.can i wright a package in mysql database(INNODB)? 569
HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE 692
How to set the time zone for MySQL to particular country time? 1681
E-Mail New Answers        Answer Selected Questions