How to Create Primary Key with multiple columns.?

Naveenhcl
Posted by Naveenhcl under Sql Server category on | Points: 40 | Views : 317
In this code section, I want to discuss about how to create primary key column with multiple columns.

CREATE TABLE Products
(
Prod1 int,
Prod2 int,
Prod3 int,

CONSTRAINT PK_Products PRIMARY KEY
(
Prod1 ASC,
Prod2 ASC,
Prod3 ASC
)
)

Comments or Responses

Login to post response