How to Alter a table for Identity Specification is identity SQL Server

后端 未结 3 1878
南方客
南方客 2020-12-06 06:25

not working

ALTER TABLE ProductInProduct ALTER COLUMN Id KEY IDENTITY (1, 1);

Check Image

I have a table ProductInProduct is

3条回答
  •  旧巷少年郎
    2020-12-06 06:37

    You don't set value to default in a table. You should clear the option "Default value or Binding" first.

提交回复
热议问题