日期:2014-05-17 浏览次数:20788 次
select distinct a.test, a.test2, a.test3, a.test4,a.time from testtime a where a.test1 in ('11', '22') and a.time between to_date('2011-10-15 08:30', 'YYYY-mm-dd hh24:mi') and to_date('2011-10-15 09:00', 'YYYY-mm-dd hh24:mi')
select distinct a.test, a.test2, a.test3, a.test4,a.time from testtime a where a.test1 in ('11', '22') and a.time >= to_date('2011-10-15 00:00', 'YYYY-mm-dd hh24:mi') and a.time < to_date('2011-11-05 00:00', 'YYYY-mm-dd hh24:mi') and to_char(a.time,'hh24:mi') between '08:30' and '09:00' ;