SQL SERVER 新增自增主键

ALTER TABLE TEST ADD MainId int IDENTITY(1,1)  PRIMARY KEY; 

原文地址:https://www.cnblogs.com/brian93/p/15464209.html