select to_date(‘2020-08-14 17:55:23’, ‘yyyy-mm-dd hh:mm:ss’) createDate from dual;
会出现格式化代码出现两次错误 如下图
解决方案:
将 to_date(‘2020-08-14 17:55:23’, ‘yyyy-mm-dd hh:mm:ss’) 改为 to_date(‘2020-08-14 17:55:23’, ‘yyyy-mm-dd HH24:mi :ss’)即可解决 如下图
select to_date(‘2020-08-14 17:55:23’, ‘yyyy-mm-dd hh:mm:ss’) createDate from dual;
会出现格式化代码出现两次错误 如下图
解决方案:
将 to_date(‘2020-08-14 17:55:23’, ‘yyyy-mm-dd hh:mm:ss’) 改为 to_date(‘2020-08-14 17:55:23’, ‘yyyy-mm-dd HH24:mi :ss’)即可解决 如下图