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...

In the primary key have a multiple field or not?

Answer Posted / prashanth kumar

Yes , it have multiple fields.Run below query and creating
primary key on p_Id and LastName.

CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
CONSTRAINT pk_PersonID PRIMARY KEY (P_Id,LastName)
)

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What types of Joins are possible with Sql Server?

1122


What is the meaning of sql server?

986


What are the disadvantages of primary key and foreign key in SQL?

1116


How do you migrate data from mssql server to azure?

165


Explain what is meant by replication of database?

1031


What is the name of the Database which IBM mainframe uses?

987


How to execute stored procedure in select statement sql server?

1061


What is the contrast between sql and mysql?

1110


Do you know what is similarity and difference between truncate and delete in sql?

1007


We need to perform what steps in the following order to work with a cursor?

1217


How to check status of stored procedure in sql server?

985


What is field in algebra?

1038


How many types of the database links?

1070


List all the types of user-defined functions?

1099


What are .mdf files?

939