1.查看表中所有
select isnullable from syscolumns where id=object_id('表名')
2.查看某一字段
select isnullable from syscolumns where id=object_id('表名') and name='字段名'
返回0表示不允许为空,1表示允许为空
1.查看表中所有
select isnullable from syscolumns where id=object_id('表名')
2.查看某一字段
select isnullable from syscolumns where id=object_id('表名') and name='字段名'
返回0表示不允许为空,1表示允许为空