if exists(select * from syscolumns where id=object_id('table1') and name='column1')
return
else
alter table1 add column1 bit
SQL Server 判断列是否存在
最新推荐文章于 2020-11-30 09:09:00 发布
if exists(select * from syscolumns where id=object_id('table1') and name='column1')
return
else
alter table1 add column1 bit