日期类型字段区间查询(to_date函数)

 

 

方法一:

select * from project_base_info where END_ACCEPTANCE_TIME between to_date('2021-01-01','yyyy-mm-dd') and to_date('2021-04-30','yyyy-mm-dd')

 

方法二:

select * from user_info  where create_TIME < to_date('2013-01-01','yyyy-mm-dd') and create_time > to_date('2012-01-01','yyyy-mm-dd')

 

posted @ 2020-08-11 10:56  万里哥  阅读(1243)  评论(0编辑  收藏  举报