日期:2014-05-17 浏览次数:20817 次
sql+=" (select count(r.birthday) from student_formal_infor r where 1=1 "; if(?==0) //执行全部 else if(?==1) //筛选20-30的 其他阶段赋值0 sql+=" (to_number('"+sysdate+"') - to_number(substr(r.birthday, 1, 4))) >= 20"; sql+=" and (to_number('"+sysdate+"') - to_number(substr(r.birthday, 1, 4))) <= 30"; sql+=" and r.worktypecode = t.worktypecode"; sql+=" and r.levelcode = t.levelcode) as age20_30,0 age30_40,0 age40_50"; else if(? ==2) ...