oracle查询时间段内的数据

select * from persons o where trunc(o.create_date) = to_date('2018-07-30','yyyy-mm-dd')

minus  对比数据完全一样。

select * from  persons o where o.create_date > to_date('2018-07-30','yyyy-mm-dd') and o.create_date < to_date('2018-07-30','yyyy-mm-dd')+1

minus  对比数据完全一样。

select * from  persons o where to_char(o.create_date,'yyyy-mm-dd')='2018-07-30' ---操作员表

posted @ 2019-01-22 11:06  江湖萤火虫  阅读(2992)  评论(0编辑  收藏  举报