为什么日期型数据不能用nvl函数,to_char(null,'yyyymmdd')行吗?
可以这样
select nvl(insertdate,to_date('20050302','yyyymmdd')) from test;