Oracle查询每天固定时间段的数据

select * from GPS_LOG t where to_char(t.gps_time,'hh24:mm:ss')>='15:30:00'
and to_char(t.gps_time,'hh24:mm:ss')<='17:00:00' order by t.gps_time

posted @ 2014-11-06 21:16  peterpanzsy  阅读(2627)  评论(0编辑  收藏  举报