标签:tab 更新 另一个 rom date ble set update table
UPDATE t
SET t.Premium = (SELECT TOP 1 Max( t2.Premium )
FROM dbo.TableName t2
WHERE t2.SetId = 2012 AND t2.Id = t.ID)
FROM dbo.TableName t
WHERE t.SetId = 2013
标签:tab 更新 另一个 rom date ble set update table
原文地址:http://www.cnblogs.com/luchaoshuai/p/7049847.html