ms sql一個表中,引用另外一張表的組合主鍵作爲外鍵:
ALTER TABLE [dbo].[Quotation] ADD CONSTRAINT [FK__Quotation__0000000000000003] FOREIGN KEY([C_N],[C_S]) REFERENCES [dbo].[Customer]([Customer_Number],[Customer_Sequence])
ms sql一個表中,引用另外一張表的組合主鍵作爲外鍵:
ALTER TABLE [dbo].[Quotation] ADD CONSTRAINT [FK__Quotation__0000000000000003] FOREIGN KEY([C_N],[C_S]) REFERENCES [dbo].[Customer]([Customer_Number],[Customer_Sequence])
https://stackoverflow.com/questions/419163/what-does-if-name-main-do