sqlserver修改表主键自增

alter table tname add id int  identity(1,1)

原文地址:https://www.cnblogs.com/shamo89/p/9149017.html