你可以嵌套查询内层先进行select type,min(num) as num,count(*) as c from table group by type这样查出来的会把相同type值合并,并且列名c里是个数外层再查c=1且num=0的数据
select type from (select type,wm_concat(num) wcon from tablename group by type) t where wcon=0