sql条件查询-日期比较(取年月部分)

查询当年当月的数据:

select * from compalete_task
where to_Char(create_date,'yyyyMM') = to_Char(sysdate,'yyyyMM')
order by create_date desc;

posted @ 2014-03-31 18:23  【云】风过无痕  阅读(1837)  评论(0编辑  收藏  举报