Update page 'Useful SQL commands'

master
Rick Payton před 7 roky
rodič
revize
38d542a731
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +4
    -1
      Useful-SQL-commands.md

+ 4
- 1
Useful-SQL-commands.md

@@ -14,4 +14,7 @@ Manually match profession colors with profession id
* UPDATE gwchars INNER JOIN gwprofessions SET gwchars.profcolor = gwprofessions.profcolor WHERE gwchars.profid = `gwprofessions`.`profid`;
Select account wide stats, with next rank in line:
* SELECT * FROM gwaccstats JOIN gwsubtitles ON gwaccstats.stnameid = gwsubtitles.titlenameid WHERE titlepoints < stpoints LIMIT 1;
* SELECT * FROM gwaccstats JOIN gwsubtitles ON gwaccstats.stnameid = gwsubtitles.titlenameid WHERE titlepoints < stpoints LIMIT 1;
Better select of account wide stats?
* SELECT * FROM gwaccstats JOIN gwsubtitles ON gwaccstats.titlenameid = gwsubtitles.titlenameid WHERE titlepoints > stpoints AND gwaccstats.titlenameid = 1;

Načítá se…
Zrušit
Uložit