mysql 按类型分组 查询状态的个数和总数
SELECT
file_type,sum(data_count) total ,sum(case Load_status when 1 then data_count else null end) success ,sum(case Load_status when 0 then data_count else null end) fail from qarc_file_load GROUP BY file_type;


mysql 按类型查询个数和总数

 

相关文章:

  • 2021-11-19
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-05-17
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-10-31
  • 2022-02-09
  • 2022-12-23
相关资源
相似解决方案