你createtime什么类型的字段啊
如果是date型
select to_char(createtime,'yyyymm'),sum(totacaccount) from 表名
where to_char(createtime,'yyyy')=to_char(sysdate,'yyyy')
group by to_char(createtime,'yyyymm')
如果是字符型
select substr(createtime,1,7),sum(totacaccount) from 表名
where substr(createtime,1,4)=to_char(sysdate,'yyyy')
group by substr(createtime,1,7)