MySQL Forums
Forum List  »  Partitioning

Re: Partition by Date Column
Posted by: Robert Pelletier
Date: October 03, 2006 12:06PM

I did it using :

PARTITION BY RANGE (cast(DATE_FORMAT(date, '%Y%V') as unsigned))

And creatig my partitions like :

PARTITION w200627 VALUES LESS THAN (200628)

Works like a charm!

Options: ReplyQuote


Subject
Views
Written By
Posted
17395
July 05, 2006 10:23AM
5768
July 24, 2006 09:01AM
5147
September 04, 2006 09:56PM
4503
September 05, 2006 05:07PM
6012
September 06, 2006 01:34AM
Re: Partition by Date Column
4069
October 03, 2006 12:06PM
5083
October 03, 2006 09:04PM
3945
October 25, 2006 08:45AM
3862
October 26, 2006 11:24PM
3738
January 28, 2009 02:08AM
3769
March 19, 2009 01:35AM
3554
April 06, 2009 08:15AM


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.