mysql單表統計不同類型計數實例

mysql單表統計不同類型計數實例 SELECT count(*) as total, ifnull(sum(case when sex = ‘男’ then 1 else 0 end),0) as man, ifnull(sum(case when sex = ‘女’ then 1 else 0 end),0) as woman, ifnull(sum(case when political_s
相關文章
相關標籤/搜索