开发者

How to set VS2010 SQL table column to be unique?

In Microsoft SQL Server 10, how do I开发者_开发知识库 set constraint, that column in table with data type nchar(50) must be unique?


ALTER TABLE yourtable
  ADD CONSTRAINT yourColumn
  UNIQUE (uniqueConstraintName)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜