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 is the difference between createstatement and preparedstatement?

938


How check triggers in sql server?

990


Can I work with several databases simultaneously? : sql server management studio

988


Why it is recommended to avoid referencing a floating point column in the where clause?

961


What is snapshot report?

165


Introduction of rollup clause using sum and group by clause?

964


What is use of @@ spid in sql server?

1211


How to use clusters?

944


Is it ok to shrink transaction log?

999


How can you insert null values in a column while inserting the data?

1280


What are dml triggers and types of dml triggers?

980


What according to you is the difference between mysql and sql server performance?

1086


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

5923


What is the maximum size of sql server database?

1004


ow to bring suspect mode datbase online from scratch

1804