嗨,我有以下脚本来创建带有分区和子分区的表,其中包含范围和列表:
CREATE TABLE C##API_USER.METERENERGY
(
METERID NUMBER NOT NULL
, ENERGY_ACTIVE_EXPORT FLOAT(63)
, ENERGY_ACTIVE_IMPORT FLOAT(63)
, ENERGY_REACTIVE_EXPORT FLOAT(63)
, ENERGY_REACTIVE_IMPORT FLOAT(63)
, COL_G_DATE NUMBER(10)
)
LOGGING
TABLESPACE HEDC_TABLE_SPACE
PARTITION BY RANGE (COL_G_DATE)
SUBPARTITION BY LIST (METERID)
(
PARTITION C##API_USER.COL_G_DATE_1483228800 VALUES LESS THAN (1483228800) TABLESPACE HEDC_TABLE_SPACE
, PARTITION C##API_USER.COL_G_DATE_1485820800 VALUES LESS THAN (1485820800) TABLESPACE HEDC_TABLE_SPACE
, PARTITION C##API_USER.COL_G_DATE_1488412800 VALUES LESS THAN (1488412800) TABLESPACE HEDC_TABLE_SPACE
);
CREATE INDEX C##API_USER.METERENERGY_INDEX1 ON C##API_USER.METERENERGY (COL_G_DATE DESC, METERID ASC);
但 oracle 数据库显示错误报告:
Error starting at line : 1 in command -
Error report -
ORA-00926: missing VALUES keyword
00926. 00000 - "missing VALUES keyword"
*Cause:
*Action:
所以我错过了什么?(我正在使用 Oracle 19c 和 oracle sql Developer)如果你能帮我找到另一个答案谢谢: