首页 > 技术文章 > Oracle查询每天固定时间段的数据

peterpanzsy 2014-11-06 21:16 原文

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

推荐阅读