开发者

not null and is unique constraint

开发者 https://www.devze.com 2022-12-20 08:40 出处:网络
In SQL Server 2005, which system table holds开发者_运维问答 the information as to whether a column is nullable or not, whether a index is unique or not asc or dec.

In SQL Server 2005, which system table holds开发者_运维问答 the information as to whether a column is nullable or not, whether a index is unique or not asc or dec.

Thanks, Jude


  • column nullability: sys.columns.is_nullable
  • index uniqueness: sys.indexes.is_unique
  • index key ascending/descending: sys.index_columns.is_descending_key


SELECT * FROM INFORMATION_SCHEMA.COLUMNS -- gives column info SELECT * FROM sys.indexes --gives info for indexes

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号