postgresql如果查询出的数据为空,则设为0的方法

来源:互联网 发布:unity3d 物理引擎 编辑:程序博客网 时间:2024/04/30 07:53

select COALESCE(b.price, 0) as price from fruit_sale b

0 0
原创粉丝点击