Is it possible to add a logic Constraint to a Foreign Key?

后端 未结 7 1798
闹比i
闹比i 2021-01-05 15:29

I\'ve got two tables and I\'ve added a foreign key constraint. Kewl - works great. Now, is it possible to further constrain that relationship against some data in the parent

7条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 16:10

    I think you want to use a Check constraint within the Mammals table.

    http://msdn.microsoft.com/en-us/library/ms188258.aspx

提交回复
热议问题