I am trying to add primary key to newly added column in existing table name Product_Details
.
New Column added: Product_Detail_ID
(int
You are getting the error because you have existing data that does not fullfill the constraint.
There are 2 ways to fix it: