Update page 'Useful SQL commands'

master
Rick Payton 7 년 전
부모
커밋
a5cf52c787
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      Useful-SQL-commands.md

+ 4
- 1
Useful-SQL-commands.md

@@ -21,4 +21,7 @@ Better select of account wide stats?
Get maxed out account titles first, sorted by rank, THEN by percentage over max rank:
* SELECT * FROM gwaccstats WHERE userid = ? AND accid = ? AND percent > 100 ORDER BY currentstrank DESC, percent DESC;
* to get the unmaxed account titles sorted, just flip the > to <
* to get the unmaxed account titles sorted, just flip the > to <
count maxed out titles from characters and accounts
* Character: SELECT COUNT(****) FROM gwcharstats WHERE percent >= 100 AND titlenameid != 27 AND charid = 20;

불러오는 중...
취소
저장