首页 > 技术文章 > postgres 判断字段为空并给默认值
qianxunman 2020-04-17 19:20 原文
select coalesce(company_id,0) from stock_quant;
懂得,原来世界如此简单!