postgres 判断字段为空并给默认值

select coalesce(company_id,0)
from stock_quant;
posted @ 2020-04-17 19:20  那时一个人  阅读(4319)  评论(0)    收藏  举报