alter table testadd id int identity(1,1)id列事先不存在
alter table tablename alter 列名(数据类型) IDENTITY(1,1);
已经有数据的表还能设置标识列吗?不能了把好像。