MySQL Forums
Forum List  »  Partitioning

Re: Add new partition for Range by date
Posted by: Rick James
Date: August 10, 2012 01:05AM

Approximately...
ALTER TABLE idea_partition
REORGANIZE PARTITION (rxMORES)
INTO
rx201210 VALUES LESS THAN( TO_DAYS('2012-10-01 00:00:00') ),
rxMORES VALUES LESS THAN (MAXVALUE) );

Suggest you think about ways to shrink the fields:
> `status` varchar(45) NOT NULL,
Is that a boolean value? Perhaps a 1-byte ENUM would work. It would be a lot smaller.
That would shrink the INDEX, too.

Options: ReplyQuote


Subject
Views
Written By
Posted
5831
August 09, 2012 04:05AM
Re: Add new partition for Range by date
2522
August 10, 2012 01:05AM


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.