pgsql 创建时间维度表

create table dim_date as
select date(t) as day
from
generate_series('2000-01-01'::date,'2099-12-31', '1 days') as t;

posted @ 2022-10-13 15:41  一杯清茶一本书  阅读(36)  评论(0编辑  收藏  举报