来源http://blog.csdn.net/ChampaignWolf/archive/2006/10/08/1325894.aspx
if not exists(select 1 from syscolumns where id=object_id('表名') and name='列名')
alter table 表名 add 列名 data_type ...
go
来源http://blog.csdn.net/ChampaignWolf/archive/2006/10/08/1325894.aspx
if not exists(select 1 from syscolumns where id=object_id('表名') and name='列名')
alter table 表名 add 列名 data_type ...
go