在线等,等到下午四点,速度最快的sql获得分数哈。如果速度一样,先回复的人得分。

解决方案 »

  1.   

    语句不用变,把qqid, matchID, matchType, gameEndType都建上索引,再试试
      

  2.   

    create index idx_name on BeginLog(qqid);
    create index idx_name1 on CompletLog(qqid);
    create index idx_name2 on beginlog(matchid)
    create index idx_name3 on completlog(matchid)
      

  3.   


    create index xx1 on BeginLog(qqid,matchID,matchType);
    create index xx1 on CompletLog(gameEndType,qqid);