首先查询语句:SELECT sysdate,systimestamp,to_char(systimestamp, 'yyyymmdd hh24:mi:ss') FROM dual; 能够正常在oracle下执行。
但是select * from T_ORG_Position where to_char(FCreateTime,'yyyy-mm-dd hh24:mi:ss') ='2008-01-01 00:00:00';不行。
测试使用的环境是金蝶的开发客户端。
报错:
complete! use time:14 end time Fri Nov 11 16:24:53 CST 2016null
Caused exception message is: translate sql exception, message is
format sql error. target database is 'Oracle9' detail message is :
ERROR
source sql is :
select * from T_BD_Person where FLastUpdateTime>=to_date('2007-04-03 13:45:39','yyyy-mm-dd hh24:mi:ss')
原因分析:个人分析由于金蝶用的oracle版本太低,不支持默写日期函数。