SQL Server add auto increment primary key to existing table
摘要:
1 ALTER TABLE dbo.YourTable ADD ID INT IDENTITY 2 ALTER TABLE dbo.YourTable ADD CONSTRAINT PK_YourTable PRIMARY KEY(ID) Or by one line ALTER TABLE dbo 阅读全文
posted @ 2021-07-01 15:28 J·Marcus 阅读(51) 评论(0) 推荐(0) 编辑