create table tb(id int identity(1,1))
alert table tb add kid int identity(1,1)
insert是不用赋值的
自增列不能直接修改,必须将原有ID列删除,然后重新添加一列具有identity属性的ID字段。比如你要修改的字段名为ID:alter table 表名 drop column IDalter table 表名 add ID int identity(1,1)欢迎分享,转载请注明来源:内存溢出
create table tb(id int identity(1,1))
alert table tb add kid int identity(1,1)
insert是不用赋值的
自增列不能直接修改,必须将原有ID列删除,然后重新添加一列具有identity属性的ID字段。比如你要修改的字段名为ID:alter table 表名 drop column IDalter table 表名 add ID int identity(1,1)欢迎分享,转载请注明来源:内存溢出
评论列表(0条)