如01和02的数据相加,其中deptMemo是varchar类型
https://zhidao.baidu.com/question/572125629.html
完全不知道你的字段名是什么。。。随便写一下,你自己改:select '部门合计' as s,sum(f3),sum(f4),sum(f5),sum(f6) from table where f2 in ('运行一部','运行二部') group by s