【轉】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')

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM