wcnwcn
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;


 

分类:

技术点:

相关文章:

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