1、mysql中的ifnull()函数对应postgresql的coalece

COALESCE('字段名称','期望值')

2、示例

select
            COALESCE(p.valid,0)  ,p.valid
        from
        b_app_ability_plan p 

 Postgresql中类似mysql中的ifnull()函数用法

相关文章:

  • 2022-12-23
  • 2021-04-16
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
猜你喜欢
  • 2021-09-12
  • 2021-08-29
  • 2022-12-23
  • 2021-08-31
  • 2021-12-03
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案