select sum( case when a is nul then 1 end),
sum( case when b is nul then 1 end),
sum( case when c is nul then 1 end)
from table1 ;

---------------------------------------------------------

select
'a' 字段,
sum( case when a is nul then 1 end)
from table1
union all
select
'b' 字段,
sum( case when b is nul then 1 end)
from table1
select
'c' 字段,
sum( case when c is nul then 1 end)
from table1 ;

 

 

 

          

相关文章:

  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-10-03
  • 2021-10-02
  • 2021-04-25
相关资源
相似解决方案