SqlServer2008R2 修改表中列为自增列

选定列,修改列属性标识规范中(是标识)为是,标识增量为1,标识种子为1

SQL语句:alter table 表名 add 列名 int IDENTITY(1,1) NOT NULL

 

posted @ 2016-10-25 17:44  婧児  Views(414)  Comments(0Edit  收藏  举报