思路是先将oracle中时间字段转化成字段串然后与字符串模糊查询
如下
String strSQLSearch = SELECT * FROM + objConfigDBgetTableName() + WHERE(to_char(creationdatetimeyyyyMMdd hh:mi:ss) LIKE % +strSearch + %);
select * from atm_operatelog t where to_char(toperatetimeyyyyMMdd) like
同时反过来也是一样可行的
select * from atm_operatelog t where toperatetime like to_date(yyyyMMdd)
将字段串转化为时间然后使用like关键字