1.oracel:使用NVL()函数:

select nvl(sum(num),0) from table

2.mysql:使用IFNULL()函数

select ifnull(sum(num),0) from table

 

相关文章:

  • 2022-12-23
  • 2021-10-17
  • 2021-12-13
  • 2021-09-26
  • 2021-07-05
  • 2022-02-12
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案