上面语句刚打错了,不号意思
select count(*) as c from A where (select sum(Score) from A where substring(gamedate,1,7)='2005-11' group by username)>30

select sum(Score) as s from (select * from A where substring(game,1,7)='2005-11') group by username having sum(Score)>30
然后再查出记录数目都查出有错