MySQL Forums
Forum List  »  Partitioning

Re: not able to create multi column partition keys
Posted by: Mattias Jonsson
Date: December 03, 2010 03:11AM

What you can try is to either split the DATETIME column into two columns, DATE and TIME.
CREATE TABLE t (id INT, d DATE, t TIME)
PARTITION BY LIST COLUMNS(id, d)
...

Or you can try to do RANGE COLUMNS (d, id).

One other suggestion is to use subpartitioning:
PARTITION BY RANGE COLUMNS(d)
SUBPARTITION BY HASH (id) SUBPARTITIONS 3
(PARTTION p1 VALUES LESS THAN ('2010-01-01'),
...);

This way it is even easier to manage the partitions.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: not able to create multi column partition keys
2419
December 03, 2010 03:11AM


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.