oracle的between用来判断时间区间

SELECT * FROM warning_form wf
where wf.start_time between trunc(sysdate,'mm') and sysdate
;

 

start_time 为oracle的date类型;oracle系统时间sysdate也为date类型;

 

此处查询start_time 介于当月初至当前时间之间的数据;

 

posted on 2018-06-27 09:20  小甜瓜安东泥  阅读(6882)  评论(0编辑  收藏  举报