0
点赞
收藏
分享

微信扫一扫

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

源码之路 2022-08-01 阅读 99

select coalesce(company_id,0)
from stock_quant;

懂得,原来世界如此简单!



举报

相关推荐

0 条评论