Re: Moving partitions
You can't transfer partitions directly from one table to another in the way you're suggesting, but you can accomplish the same thing using
INSERT ... SELECT followed by either of:
a. (If you want to remove the data whilst preserving the partition's definition in the original table:)
DELETE using the same
WHERE clause as the
INSERT ... SELECT (and
OPTIMIZE TABLE to reclaim the space).
or
b. (If you want to remove the partition definition from the original table:)
ALTER TABLE ... DROP PARTITION.
Jon Stephens
MySQL Documentation Team @ Oracle
MySQL Dev Zone
MySQL Server Documentation
Oracle
Subject
Views
Written By
Posted
3964
March 04, 2008 12:10PM
Re: Moving partitions
2507
March 25, 2008 10:58AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.