經安全檢測,此網站為安全網站,請放心前往原始網址!

SQL Server Update Group by - Stack Overflow

In MSSQL you can do aggregation in an update query you just have to do it in a subquery and then join it on the table you want to update. update #temp Set Dos=Cnt From #temp inner join (select total, count(*) as Cnt from Temp_Table2010 group by Total) s o

stackoverflow.com

網址安全性掃描由 google 提供