我有一個還挺表是這樣的:Mysql分區錯誤?
CREATE TABLE test (
id MEDIUMINT NOT NULL AUTO_INCREMENT,
user VARCHAR(30),
time VARCHAR(30),
status VARCHAR(30),
origin VARCHAR(30),
PRIMARY KEY (id)
) ENGINE=MyISAM;
PARTITION BY RANGE(id) (
PARTITION p0 VALUES LESS THAN (500000),
PARTITION p1 VALUES LESS THAN (1000000),
PARTITION p2 VALUES LESS THAN (1500000),
PARTITION p3 VALUES LESS THAN (2000000),
PARTITION p4 VALUES LESS THAN (2500000)
)
我有三個問題:
1)我這裏有一個#1064錯誤;
2)我如何設置split test.user作爲分區中的字母範圍;
3)如何檢查分區是否成功;