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 new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Databases >> MySQL
 
 


 

 
 Oracle interview questions  Oracle Interview Questions (2035)
 SQL Server interview questions  SQL Server Interview Questions (1075)
 MS Access interview questions  MS Access Interview Questions (24)
 MySQL interview questions  MySQL Interview Questions (194)
 Postgre interview questions  Postgre Interview Questions (6)
 Sybase interview questions  Sybase Interview Questions (22)
 DB Architecture interview questions  DB Architecture Interview Questions (5)
 DB Administration interview questions  DB Administration Interview Questions (213)
 DB Development interview questions  DB Development Interview Questions (53)
 SQL PLSQL interview questions  SQL PLSQL Interview Questions (768)
 Databases AllOther interview questions  Databases AllOther Interview Questions (106)
Question
is it possible to assign two primary key in a table
 Question Submitted By :: Pr
I also faced this Question!!     Rank Answer Posted By  
 
  Re: is it possible to assign two primary key in a table
Answer
# 1
A table can have only one primary key assigned. 
Is This Answer Correct ?    13 Yes 0 No
Sushma S
 
  Re: is it possible to assign two primary key in a table
Answer
# 2
IF WE MAKE COMPOSITE PRIMIRAY KEY THEN ONLY MORE THAN ONE
COLUMNS WILL BE BIND UP.
 
Is This Answer Correct ?    11 Yes 1 No
Sudipta Santra
 
 
 
  Re: is it possible to assign two primary key in a table
Answer
# 3
yes 
Is This Answer Correct ?    1 Yes 2 No
Rajan Bajalia
 
  Re: is it possible to assign two primary key in a table
Answer
# 4
At the end of the day a primary key is unique non null value
that the data is indexed upon.

Even if only one column can be explicitly defined as the PK.
It is possible to uniquely identify a row differently, by
creating a unique non null column that is indexed. It is
implicitly then a PK.
 
Is This Answer Correct ?    3 Yes 0 No
Jd
 
  Re: is it possible to assign two primary key in a table
Answer
# 5
Answer is strictly NO...!!!

we may have morethan one unique column in a table but we should assign only one primary key...!!
 
Is This Answer Correct ?    3 Yes 0 No
Vignesh Lakshmirajan
 
  Re: is it possible to assign two primary key in a table
Answer
# 6
no it doesn't possible 
Is This Answer Correct ?    3 Yes 0 No
Guest
 
  Re: is it possible to assign two primary key in a table
Answer
# 7
any if one time primary key in a table 
Is This Answer Correct ?    0 Yes 0 No
Rajan
 

 
 
 
Other MySQL Interview Questions
 
  Question Asked @ Answers
 
How many ways we can we find the current date using MySQL?   5
about join   2
How do you index just the first four bytes of the column?   2
What?s the difference between query_cache_type 1 and 2?   1
what is the Dynamic management views? where can you use? ACC 1
How to get full name of monthname ?   4
What are some good ideas regarding user security in MySQL?   2
Print 3 highest salary   9
How do you start and stop MySQL on Windows?   3
What is the main different between Null and NOT Null. Difference between Primary and Unique Key. How to Check the database from which application is it possibe.   6
How many services is running in sql server? ACC 3
Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP . Zensar 2
 
For more MySQL Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com