oracle 查询为空返回指定值,及知足条件返回指定值

查询结果存在为空给与一个默认值 sql  nvl(h.date_type, '时间类型') as dateType 根据条件判断返回对应值code 第一种:blog  case          when h.date_time= 0 then           '7天'          when h.date_time= 1 then           '半个月'          whe
相关文章
相关标签/搜索