select COALESCE(b.price, 0) as price from fruit_sale b
postgresql如果查询出的数据为空,则设为0的方法
最新推荐文章于 2025-03-09 17:50:00 发布
select COALESCE(b.price, 0) as price from fruit_sale b