ALTER TABLE order_sample
ADD CONSTRAINT [FK__order_sam__cust___0425A276] FOREIGN KEY(cust_id) REFERENCES cuts_sample(cust_id)
alter table dbo.WaterWatch add constraint Watch foreign key(WatchDataID)
references dbo.WatchData(WatchDataID)
alter table dbo.WaterWatch add constraint Watch foreign key(WatchDataID)
references dbo.WatchData(WatchDataID)
转载于:https://www.cnblogs.com/ap0606122/archive/2010/11/24/1886395.html