select count(id) total,
case username when ''
then '电话'
else ifnull(username ,'')
end username
from xp_chineseinquiry
WHERE -- 条件
group by ifnull(username ,'')
select count(id) total,
case username when ''
then '电话'
else ifnull(username ,'')
end username
from xp_chineseinquiry
WHERE -- 条件
group by ifnull(username ,'')