数据仓库服务 GAUSSDB(DWS)-表(Oracle):间隔分区

时间:2024-10-26 11:41:26

间隔分区

对于间隔分区,应该注释分区。

Oracle语法

迁移后语法

1
2
3
4
5
6
7
8
9
CREATE TABLE product
(
  product_id     VARCHAR2(20),
  product_name   VARCHAR2(50),
  manufacture_month DATE
)
partition by range (manufacture_month) interval (NUMTODSINTERVAL (1, 'MONTH'))
(
  partition T_PARTITION_2018_11_LESS values less than (TO_DATE(' 2018-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')));
1
2
3
4
5
6
7
8
9
CREATE TABLE product
(
  product_id     VARCHAR2(20),
  product_name   VARCHAR2(50),
  manufacture_month DATE
)
/*partition by range (manufacture_month) interval (NUMTODSINTERVAL (1, 'MONTH'))
(
  partition T_PARTITION_2018_11_LESS values less than (TO_DATE(' 2018-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')))*/;
support.huaweicloud.com/tg-dws/dws_mt_0108.html