oracle:如何用sql生成日历

BI分析中,经常需要将事实表与时间维度表关联起来,按年/月/日来逐层展示,常用的做法是创建一张日历表,结构类似如下: create table T_BAS_CALENDAR ( d_year NUMBER(4) not null, d_month NUMBER(2) not null, d_day NUMBER(2) not null ); comment on table T_
相关文章
相关标签/搜索