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_
相關文章
相關標籤/搜索