SELECT * FROM warning_form wf
where wf.start_time between trunc(sysdate,'mm') and sysdate
;
start_time 為oracle的date類型;oracle系統時間sysdate也為date類型;
此處查詢start_time 介於當月初至當前時間之間的數據;
SELECT * FROM warning_form wf
where wf.start_time between trunc(sysdate,'mm') and sysdate
;
start_time 為oracle的date類型;oracle系統時間sysdate也為date類型;
此處查詢start_time 介於當月初至當前時間之間的數據;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。