Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can a table have two primary keys?

Answer Posted / pardeeep

NO,A table have only one primary key.But we can use it on more then one column.
Exp..
create table emp(empno int,ename nvarchar(20),deptno int,constraint Pk_constraint primary key( empno,deptno))
This query for SQL server

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I add a database to sql?

1131


What is rownum?

987


Can you have a foreign key without a primary key?

956


how to drop an existing index in mysql? : Sql dba

1070


How do I send sql query results to excel?

1072


What normalization means?

982


What is a subquery in sql?

1046


Explain the structure of pl/sql in brief.

1097


how many sql dml commands are supported by 'mysql'? : Sql dba

1128


Explain what is a subquery ?

1193


What is pl sql quora?

1176


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1137


What is user in sql?

1027


What is mutating table error?

1192


What is partition in sql query?

1004