MySQL Forums
Forum List  »  Partitioning

Re: Partition
Posted by: Rick James
Date: August 19, 2012 03:18PM

Are you using MyISAM? Or InnoDB? Some of what Jon points out depends on the choice of Engine.

> PARTITION p_JAN VALUES LESS THAN (2012-02-01),
That's the same as
PARTITION p_JAN VALUES LESS THAN (2009),
because that is an arithmetic expression. Quote dates.

> PARTITION BY RANGE ( Month(fldconfirmdate))
> PARTITION p_JAN VALUES LESS THAN (2012-02-01),
--> (after switching to DATE or DATETIME from VARCHAR):
PARTITION BY RANGE ( TO_DAYS(fldconfirmdate))
PARTITION p_JAN VALUES LESS THAN (TO_DAYS('2012-02-01')),

Why partition? Will you be DROPping old partitions?

Options: ReplyQuote


Subject
Views
Written By
Posted
2695
August 10, 2012 12:37AM
1645
August 11, 2012 03:37AM
Re: Partition
1463
August 19, 2012 03:18PM


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.