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
 
using primary can we relate two table, with out foreign key? 1131
1)for snapshot replication which agents used? 2)for Transcation replication which agents used? 3)for merge replciation which agents used? 601
How internally data stores in MyISAM and INNODB table types? 859
How can you move the master database 443
Table - Products has number of products as below Productid ProductName 1 iPhone 2 iPad 3 BlackBerry Table - SalesPersonProduct has the below records Salespersonid productid S1 1 S1 2 S1 3 S2 1 S3 2 Write a SQL query that returns the total number of sold products 1087
What are the critical issues you have resolved in your company 598
What is striped backup 689
What are the method you will follow while sql installing 813
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? 1083
explain GROUPBY & HAVING clause with examples. 726
all the queries used in sql 1003
What is RMS Migrations 709
I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA. 1416
What is difference between Sql server and MySql database? It may be silly question but i really dont know. 213
Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf? 2785
E-Mail New Answers        Answer Selected Questions