且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Oracle日期格式的空日期为00/00/0000

更新时间:2023-11-29 13:16:40

首先执行to_char并将其包装在NVL中. 例如,

Do the to_char first and wrap it in the NVL. For example,

select nvl(to_char(null, 'DD-MM-YYYY'), '00-00-0000') from dual