if exists (select * from syscolumns where id=object_id('表名') and name='字段名')
print '有'
else
print '无'
if exists (select * from syscolumns where id=object_id('表名') and name='字段名')
print '有'
else
print '无'
转载于:https://www.cnblogs.com/huangshuqiang/p/5865504.html