首页 > 技术文章 > postgres 判断字段为空并给默认值

qianxunman 2020-04-17 19:20 原文

select coalesce(company_id,0)
from stock_quant;

推荐阅读