我有 2 个具有相同列的表,例如 ID、SupplierID、ConditionValue、Status、Deleted,并且我在代码中插入数据
INSERT INTO SCM_SupplierShippingRateHistory
SELECT *
FROM SCM_SupplierShippingRate
WHERE Id NOT IN(SELECT ID FROM dbo.GetIDsTableFromIDsList(@NonDeleteShippingIDs))
AND SupplierId= @SupplierID
AND ConditionValue IS NULL
AND Deleted=0
我想插入相同的数据,但我想设置状态 =4 我该怎么做