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
 
Hi Team, This is kartik, I recently completed my B-tech. Importance of posting this question is for to know the best books on SQL(MYSQL/Oracle)? I like SQL concept's so much, at the same time i decided to choose SQL for my career purpose. So please suggest me the best books that are very helpful for a fresher to improve concepts like (SQL/PLSQL)Basics, programming concepts, architectures etc. Please consider my request as an important one. I am very thankful to you for providing this opportunity. If possible can you please send the names of books for my personal id also: karthikgdv1206@yahoo.com. Thanks, Kartik T 771
Have you ever used MySQL Administrator and MySQL Query Browser? Describe the tasks you accomplished with these tools? 2038
Explain the architecture models of SQL Server? 873
suppose data is copie to oracle to sql by using DTS. Actully it taken 2 hours. suppose some day distribute the server in the middle of 2 hours. after how can i get the data ? 704
using primary can we relate two table, with out foreign key? 1244
How can you get your MySQL root password, if you lost it? 1105
HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE 718
How can you move the master database 529
What is RMS Migrations 825
What is difference between Sql server and MySql database? It may be silly question but i really dont know. 393
what is mysql optimization in brief? 870
How internally data stores in MyISAM and INNODB table types? 1002
why not null is not allowed at table level 992
i made a table whih contain a column "Photo" with image data type and i want to insert the byte of a picture present in my hardisk using insert statement in that colum... so what will be my insert statement? 1154
What is striped backup 811
E-Mail New Answers        Answer Selected Questions