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
相關文章
相關標籤/搜索