📌  相关文章
📜  oracle如何获取一个月内的所有日期 - SQL代码示例

📅  最后修改于: 2022-03-11 15:05:26.154000             🧑  作者: Mango

代码示例1
-- All dates between 01/01/2021 and 15/01/2021
SELECT to_date('01/01/2021', 'DD/MM/YYYY') + ROWNUM - 1
FROM ALL_OBJECTS
WHERE ROWNUM <= to_date('15/01/2021', 'DD/MM/YYYY') 
    - to_date('01/01/2021', 'DD/MM/YYYY') + 1;