INSERT dbo.DataValue(DateStamp, ItemId, Value)SELECT DateStamp, ItemId, Value FROM dbo.tmp_holding_DataValue AS tWHERE NOT EXISTS (SELECT 1 FROM dbo.DataValue AS dWHERE DateStamp =t.DateStampAND ItemId =t.ItemId );コード> プレ>
INSERT dbo.DataValue(DateStamp, ItemId, Value)SELECT DateStamp, ItemId, Value FROM dbo.tmp_holding_DataValue AS tWHERE NOT EXISTS (SELECT 1 FROM dbo.DataValue AS dWHERE DateStamp =t.DateStampAND ItemId =t.ItemId );コード> プレ>