0
update NewLeaderBoards set MonthlyRank=(Select RowNumber() (order by TotalPoints desc) from LeaderBoards)
我嘗試了這種方式 -
(Select RowNumber() (order by TotalPoints desc) from LeaderBoards) as NewRanks
update NewLeaderBoards set MonthlyRank = NewRanks
但它不爲任何人me..Can工作建議我怎麼能以這樣的方式執行更新..
謝謝。它有幫助。 – Vishal 2010-06-11 16:26:41
是的,它被稱爲UPDATE FROM語句,如果我記得正確。 – 2010-06-12 09:10:32