摘要: oracle 的NVL(col,0)是判断如果col字段为空的时候赋值0。 postgresql里也有类似的方法 Sql代码 SELECT coalesce(collect_result,0) as collect_result FROM collect Sql代码 Sql代码 数据库中如果查询的字 阅读全文
posted @ 2016-08-25 11:20 RenBwo 阅读(164) 评论(0) 推荐(0) 编辑