Select * from a where date between to_date(‘2018-1-1’, ‘yyyy-mm-dd’) and to_date(‘2018-8-1’,‘yyyy-mm-dd’)
查询结果
1)select * from tableName t where start_times > to_date(‘2015/6/26 10:00:00’,‘yyyy/mm/dd hh24:mi:ss’);
2)select * from tableName t where start_times < to_date(‘2015/6/26 10:00:00’,‘yyyy/mm/dd hh24:mi:ss’);