两个表连接一下插入另一个表中
USE [R_BIMPM_RoadBridge]
GO
INSERT INTO [dbo].[ProjectConstructionType_Relation]
([RowGuid]
,[ProjectRowGuid]
,[ConstructionTypeRowGuid]
,[TypeName]
,[CType]
,[IsVisible]
,[TypeUnit]
,[IsUsedLocationSelect]
,[TypeSumCost]
,[CreationDate])
select newID()
,a.RowGuid
,b.RowGuid
,b.Name
,b.Type
,b.IsVisible
,b.Unit
,b.IsUsedLocationSelect
,1000000
,GetDate()
from [R_BIMPM_Base].[dbo].[ProjectInfo] as a , [R_BIMPM_RoadBridge].[dbo].[ConstructionType] as b
GO