给已经有数据的表添加一个新的ID:
添加该列为自增列。
alter table 表名 add 字段名 int identity(1000,1)---1000,1的意思是从1000开始,每条记录增加1
删除一个列
alter table 表名 drop column 字段名
给已经有数据的表添加一个新的ID:
添加该列为自增列。
alter table 表名 add 字段名 int identity(1000,1)---1000,1的意思是从1000开始,每条记录增加1
删除一个列
alter table 表名 drop column 字段名