sql如下
select count(1) from t where t.create_date > to_date('2022-03-10 12:00:00','yyyy-mm-dd hh24:mi:ss')
或修改为
select count(1) from t where to_char(create_date ,'yyyy-mm-dd hh24:mi:ss')> '2022-03-10 12:00:00'
t是一个视图,oracle版本是12c,create_date类型未知,猜测是date(只有视图权限)。
sql在navicat下执行成功。用jdbc执行报错ora01861。尝试更换各版本驱动,问题依旧,求指教解决方案。