Column level vs table level constraints in sql server?

前端 未结 4 875
逝去的感伤
逝去的感伤 2021-02-07 19:43

a. Column Level

GO

CREATE TABLE Products
(
ProductID INT CONSTRAINT pk_products_pid PRIMARY KEY,
ProductName VARCHAR(25)
);

GO

b.

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 20:05

    A bit late to the party but FYI for others

    http://social.technet.microsoft.com/wiki/contents/articles/13744.table-level-vs-column-level-constraints.aspx

提交回复
热议问题