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 can get second highest salary in sql?

907


Can we commit inside a trigger?

942


What is keys and its types?

1019


What is sql indexing?

963


What is the difference between numeric and autonumber?

938


What are the benefits of pl/sql packages?

1032


How many postgresql users are there, worldwide?

991


What is an emotional trigger?

930


What is before trigger?

945


What is the unique index?

1002


How do you declare a constant?

909


What are the benefits of stored procedures?

996


How do you update f as m and m as f from the below table testtable?

1788


What is program debugging?

1128


What is a memo field?

900