时间:2021-07-01 10:21:17 帮助过:21人阅读
和RANGE分区的区别是,LIST分区是属于一个枚举列表的值的集合,RANGE分区是属于一个连续区间值的集合。
语句PARTITION BY LIST(expr)
CREATE TABLE emp2list(expence_date DATE NOT NULL,category INT,amount DECIMAL(10,3))
????PARTITION BY LIST(category)(
????PARTITION p0 VALUES IN (3,5),
????PARTITION p1 VALUES IN (1,10),
????PARTITION p2 VALUES IN (4,9),
????PARTITION p3 VALUES IN (2),
????PARTITION p4 VALUES IN (6)
????);
MySQL分区(二)LIST分区
标签:mil 一个 size lis values family int mysql category