Can I have a foreign key referencing a column in a view in SQL Server?

前端 未结 7 1964
难免孤独
难免孤独 2020-12-01 15:34

In SQL Server 2008 and given

TableA(A_ID, A_Data)
TableB(B_ID, B_Data)
ViewC(A_or_B_ID, A_or_B_Data)

is it possible to define TableZ(

相关标签:
7条回答
  • 2020-12-01 16:15

    Sorry, you cannot FK to a view in SQL Server.

    0 讨论(0)
提交回复
热议问题