oracle获取当前时间前1天/1小时/1分钟

---- 前2天 
select * from GPS_INFO where CREATE_TIME >  sysdate - interval '2' day
---- 前1天 
select * from GPS_INFO where CREATE_TIME > (SYSDATE - 1)

---- 前1小时
select * from GPS_INFO where CREATE_TIME > sysdate-1/24

---- 前 5分钟  如果要获取前1分钟最后改成 sysdate - 1/24/60*1就可以了
select * from GPS_INFO where CREATE_TIME > sysdate - 1/24/60*5
posted @ 2021-08-10 11:28  RHsama  阅读(4578)  评论(0编辑  收藏  举报