查询在两个日期之间的的数据
select send_date,to_char(send_date,'yyyymmdd') as c from messages where to_char(send_date,'yyyyMM') between '201202' and '201211';