postgresql 判断字段是否为空时间:2025-03-17 08:38:54select COALESCE(tran.rm_amt,0) rm_amt select COALESCE(null, 0) as test 结果 test 0