求按月查询统计的sql,oracle答:Select 学生编号,性别,case when DatePart('m',年月)=1 then 成绩 else 0 end,case when DatePart('m',年月)=2 then 成绩 else 0 end,case when DatePart('m',年月)=3 then 成绩 else 0 end,case when DatePart('m',年月)=4 then 成绩 else 0 end,case when DatePart('m',年月)=5...
oracle数据库通过脚本去批量的统计多个access.log(weblogic 日志)_百 ...答:建一个存储状态返回码的维表 t2(http_code)select v.tt,count(1),v.zt from (select substr(code,instr(code, '[') + 1,instr(code, ']') - instr(code, '[') - 16) tt,t2.http_code zt from tb_acclog,t2 where instr(code, t2.http_code) > 0 ) v group by v.tt,v...