📅  最后修改于: 2022-03-11 15:04:56.979000             🧑  作者: Mango
-- ORACLE partition swap
ALTER TABLE target_table
EXCHANGE PARTITION target_partition
WITH TABLE source_table;
/*
. source_table and target_table have the same structure
(columns, data types, respect constraints).
. indexes have to be rebuilt
*/