 GO --添加 订单明细 外键
 ALTER TABLE [Order Details]  WITH CHECK ADD  CONSTRAINT [FK_Order Details_Orders] FOREIGN KEY([OrderID])
		REFERENCES [Orders] ([OrderID]) 
 GO --约束检查
 ALTER TABLE [Order Details] CHECK CONSTRAINT [FK_Order Details_Orders] 
 

 GO --添加 订单明细 外键
 ALTER TABLE [Order Details]  WITH CHECK ADD  CONSTRAINT [FK_Order Details_Products] FOREIGN KEY([ProductID])
		REFERENCES [Products] ([ProductID]) 
 GO --约束检查
 ALTER TABLE [Order Details] CHECK CONSTRAINT [FK_Order Details_Products] 
 

