:: 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? 1982
What is difference between Sql server and MySql database? It may be silly question but i really dont know. 275
what is mysql optimization in brief? 802
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: Thanks, Kartik T 713
What are the critical issues you have resolved in your company 620
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 ? 640
How to enable or disable a row of a table using MySQL in struts? 1908 to fetch a value and Execute store procudure in mysql(INNODB) using phpMyAdmin? 2.can i wright a package in mysql database(INNODB)? 556
How internally data stores in MyISAM and INNODB table types? 906
What is RMS Migrations 746
how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers... 692
What is striped backup 710
Explain the architecture models of SQL Server? 789
I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL? 459
How can you plan the logshipping before processing? 720
E-Mail New Answers        Answer Selected Questions