if exists(select * from syscolumns 
where id=object_id('表名') and name='列名') 
begin
    alter table 表名 drop column 列名 ;
end
alter table 表名 add 列名 int identity(1,1);

 

相关文章: