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