欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ORALCE对已有数据表进行分区

程序员文章站 2022-03-12 09:34:20
...
CREATE TABLE LPB_TRACEPOINT_TEMP_TEST
PARTITION BY RANGE (REPORTTIME) INTERVAL (NUMTODSINTERVAL(1, 'day')) 
(PARTITION PART_T01 VALUES LESS THAN(TO_DATE('2021-06-01', 'yyyy-mm-dd')))
AS
SELECT TP_GUID, PDA_ID, USER_ID, X, Y, LNG, LAT, ANGLE, SPEED, REPORTTIME, TYPE, ACCURACY, SAVE_DATE FROM LPB_TRACEPOINT_TEMP