判断是为了不重复添加
if (select count(*) from sysobjects a,syscolumns b where a.id=b.id and b.name='你要加的字段' and a.type='u' and a.name='你要添加字段的表' ) < 1
BEGIN
alter table 你要添加字段的表 add 你要加的字段char(1) default 默认值 not null ;
end
删除的话
alter table 表名 drop column 字段名