Update page 'Useful SQL commands'

master
Rick Payton 7 年之前
父節點
當前提交
38d542a731
共有 1 個檔案被更改,包括 4 行新增1 行删除
  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;

Loading…
取消
儲存