oracle 查询一年12个月的sql,获取今年在内的前几年、后几年

-- 一年12月的sql select to_char(sysdate, 'yyyy-') || lpad(level, 2, 0) datevalue from dual connect by level < 13; /* --结果 DATEVALUE 2020-01 2020-02 2020-03 2020-04 2020-05 2020-06 2020-07 2020-08 2020-
相关文章
相关标签/搜索