select count(1) from table where columnname=value

写成

select count(case when columnname=value than 1 else null) from table  快些

 

相关文章:

  • 2021-04-15
  • 2021-07-21
  • 2022-12-23
  • 2021-08-12
  • 2021-06-12
  • 2022-02-20
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2021-11-01
  • 2021-07-10
  • 2021-11-20
  • 2022-12-23
  • 2022-01-02
  • 2021-10-25
相关资源
相似解决方案