IFNULL(count,0) as count

select IFNULL(count,0) as count from table_name

可以设置当某个字段为空的时候默认值。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-07-07
  • 2022-12-23
相关资源
相似解决方案