开发者

not null and is unique constraint

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜