SELECT  count(*),  

sum(case when identify_type=01 then 1 else 0 end ),  

sum(case when identify_type=02 then 1 else 0 end ),

 sum(case when identify_type=03 then 1 else 0 end )   FROM `user_info`;  

mysql 一个表内根据字段对应值不同查询统计总数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-11-13
相关资源
相似解决方案