MySQL Forums
Forum List  »  Partitioning

Re: Moving partitions
Posted by: Jonathan Stephens
Date: March 25, 2008 10:58AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
3894
March 04, 2008 12:10PM
Re: Moving partitions
2467
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.