I am trying to add primary key to newly added column in existing table name Product_Details.
Product_Details
New Column added: Product_Detail_ID (int
Product_Detail_ID
int
ALTER TABLE Jaya ADD CONSTRAINT no primary key(No);
here Jaya is table name,
Jaya
no is column name,
no
ADD CONSTRAINT is we giving the primary key keyword
ADD CONSTRAINT