MySQL Forums
Forum List  »  Partitioning

Re: Week Partitioning
Posted by: Rick James
Date: July 18, 2009 12:07PM

Sorry, this obvious feature is not automated in MySQL. You have to write code that runs weekly to do these:
ALTER TABLE ... DROP PARTITION -- to drop the year-old week
ALTER TABLE ... ADD PARTITION -- to create the new week

Read further here
http://dev.mysql.com/doc/refman/5.1/en/partitioning-management-range-list.html
and test it before deploying it.

Options: ReplyQuote


Subject
Views
Written By
Posted
4866
July 17, 2009 03:25AM
Re: Week Partitioning
2861
July 18, 2009 12:07PM
2729
July 20, 2009 03:29AM
7427
August 06, 2009 04:02PM


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.