创建按月自动分区表

create table month_interval_partition_table
(id number,time_col date) partition by range(time_col)
interval (numtoyminterval(1,'month'))
(
partition p_month_1 values less than (to_date('2014-01-01','yyyy-mm-dd'))
);

posted @ 2021-04-12 14:27  rjm123456  阅读(201)  评论(0编辑  收藏  举报