Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Aktualisieren des Rangs in der Tabelle

UPDATE   team, (SELECT @Rank:=0) Sub0
SET      TeamRank = @Rank := @Rank + 1
ORDER BY TeamPoints DESC