【转】oracle查询当前时间前10分钟到当前时间的数据

原文:https://my.oschina.net/u/3023191/blog/1838832

select
      *
    from LG_GNLKXX_TEMP
    where
    delete_state =0 and (RZLX = 0 or RZLX = 1)
    and create_date >= to_date(to_char(sysdate-10/(24*60),'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
    and create_date <= to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')

 

posted @ 2021-05-13 16:37  一去二三浪里小白龙  阅读(861)  评论(0编辑  收藏  举报
//增加一段JS脚本,为目录生成使用