1. 查询在某一个时间段内的记录: select * from my_table where to_char(time_column,'yyyy-mm-dd') between '2013-07-01' and '2013-07-15'