MySQL Forums
Forum List  »  Partitioning

Partitioning using RIGHT function
Posted by: Adrian Chapela Cordeiro
Date: July 17, 2008 05:48AM

Hello,

I am trying to do an partitioned table but I can't use RIGHT function on the expression.

This is what I want to do:

PARTITION BY LIST( RIGHT(number,1) ) (
PARTITION p01 VALUES LESS THAN (2),
PARTITION p23 VALUES LESS THAN (4),
PARTITION p45 VALUES LESS THAN (6),
PARTITION p67 VALUES LESS THAN (8),
PARTITION p89 VALUES LESS THAN (10)
)

This is the error, it is very clear to me....
ERROR 1564 (HY000): This partition function is not allowed

is there any manner to do partitioning using the last char of a number ? The number can take about 10000 values and if I divide table in ten parts, I could have parts of table with a small size.

Could you take a look ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Partitioning using RIGHT function
6155
July 17, 2008 05:48AM
2461
October 08, 2008 08:49AM


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.