Composite Key

  • Hi Friends,

    I have two columns like IntakeID [int], NOT NULL and PlacementID (PK) [int], NOT NULL

    How to make composite key addind IntakeID and Placement

    Thanks in Advance

    kala

  • hi,

    is is as simple as ur create the primary key.

    ALTER TABLE dbo.Table_1 ADD CONSTRAINT PK_Table_1 PRIMARY KEY (id, name)

    replace table name and column names as per ur comfort...

    mithun

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply