ms sql一个表中,引用另外一张表的组合主键作为外键:

引用组合主键作为外键

 

 

ALTER TABLE [dbo].[Quotation]
   ADD CONSTRAINT [FK__Quotation__0000000000000003]
   FOREIGN KEY([C_N],[C_S])
   REFERENCES [dbo].[Customer]([Customer_Number],[Customer_Sequence])
View Code

相关文章:

  • 2021-04-11
  • 2021-08-09
  • 2022-02-13
  • 2021-07-12
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2022-01-04
  • 2021-11-30
  • 2021-06-19
  • 2021-08-16
相关资源
相似解决方案