如何找出整个数据库中允许插入NULL值的列?
最佳答案
我手头没有sql,但查询是这样的
SELECT * FROM information_schema.columns WHERE is_nullable = 'YES'
一般来说,搜索此标准 View ,以获取有关数据库架构和结构的所有元数据信息;还有很多其他的(information_schema.tables、information_schema.constraints 等)
关于sql - 查找 SQL 2000 数据库中所有可为 Null 的列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1113517/