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 / antonis flangofas

ofc you can, stop giving to ppl wrong answers here it is

CREATE TABLE track(
album CHAR(10),
disk INTEGER,
posn INTEGER,
song VARCHAR(255),
PRIMARY KEY (album, disk, posn)
)

if you want to avoid to have id you use this way.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a cursor? : Sql dba

1065


How to add new employee details in an employee_details table with the following details

1137


Which are the different character-manipulation functions in sql?

1110


What is the difference between sum and count in sql?

1037


What is data abstraction in sql?

1065


What is the difference between alter trigger and drop trigger statements?

1163


What is synonyms?

1118


how to use regular expression in pattern match conditions? : Sql dba

1087


Can we use join in subquery?

1150


Does view contain data?

1084


What is the difference between a primary key and a unique key?

1106


What is partition by in sql?

1126


How do I upgrade sql?

1049


How many disk partitions should I have?

1040


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

1092