select a.*,
from table_name
WHERE
a.exec_time>=to_date('20070611 00:00:01', 'yyyymmdd hh24:mi:ss')
and a.exec_time<=to_date('20070611 23:59:59', 'yyyymmdd hh24:mi:ss')
select a.*,
from table_name
WHERE
a.exec_time>=to_date('20070611 00:00:01', 'yyyymmdd hh24:mi:ss')
and a.exec_time<=to_date('20070611 23:59:59', 'yyyymmdd hh24:mi:ss')