alter table HJGL_CH_HotProessTrustItem add ISO_ID varchar(50)
go
ALTER TABLE [dbo].[HJGL_CH_HotProessTrustItem]  WITH CHECK ADD  CONSTRAINT [FK_HJGL_CH_HotProessTrustItem_HJGL_PW_IsoInfo] FOREIGN KEY([ISO_ID])
REFERENCES [dbo].[HJGL_PW_IsoInfo] ([ISO_ID])
GO

ALTER TABLE [dbo].[HJGL_CH_HotProessTrustItem] CHECK CONSTRAINT [FK_HJGL_CH_HotProessTrustItem_HJGL_PW_IsoInfo]
GO

UPDATE t SET t.ISO_ID = j.ISO_ID
FROM [dbo].[HJGL_CH_HotProessTrustItem] t
INNER JOIN [dbo].[HJGL_PW_JointInfo] j ON t.JOT_ID = j.JOT_ID
go