postgresql 实现查询出的数据为空,则设为0的操作
我就废话不多说了~
select name,price from odoo_sale;
select name,COALESCE(price, 0) from odoo_sale;
0
0
0
加载中,请稍侯......
精彩评论