快乐小馒头

文章
7
资源
1
加入时间
3年1月8天

Oracle数据库-date数据类型(时间)比较大小

OCCUR_TIME为table表data数据类型的字段,以下为查询小于当前系统时间300秒的时刻后的记录select * from table where OCCUR_TIME > (select sysdate - 300/(24*60*60) from dual)或select * from table where OCCUR_TIME > sysdate - 300/(24*60*60)以下为查询2009-02-04 21:17:00后的记录select * from tab