Oracle根據當前時間獲取最近5年,最近6個月,最近30天的時間

根據當前時間獲取最近5年時間:(yyyy)spa SELECT to_char(SYSDATE,'YYYY') - LEVEL + 1 as "xAxisValue" date FROM dual CONNECT BY LEVEL <= 5 ORDER BY to_char(SYSDATE,'YYYY') - LEVEL + 1 ASC時間 根據當前時間獲取最近6個月時間(yyyy-mm): SE
相關文章
相關標籤/搜索