Adding column with primary key in existing table

后端 未结 5 1942
感动是毒
感动是毒 2021-02-02 12:29

I am trying to add primary key to newly added column in existing table name Product_Details.

New Column added: Product_Detail_ID (int

5条回答
  •  走了就别回头了
    2021-02-02 12:58

    ALTER TABLE Jaya 
      ADD CONSTRAINT no primary key(No);
    

    here Jaya is table name,

    no is column name,

    ADD CONSTRAINT is we giving the primary key keyword

提交回复
热议问题