ALTER TABLE VS4TInventoryMB ADD 
CONSTRAINT FL_VS4TInventoryMB_VS4TInventoryLOT FOREIGN KEY 
(
TInMTPdtCode,TInMLOTNo,TInMLotDate,TInMCustom1,TInMSerialNo
) REFERENCES VS4TInventoryLOT (
TIMCTPdtCode,TIMCLOTNo,TIMCLotDate,TIMCCustom1,TIMCSerialNo
) ON UPDATE CASCADE
GO