标签:int category lis art exp ack blog mysql分区 ima
LIST分区是建立离散的值列表告诉数据库属于哪一个分区
和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)
????);
标签:int category lis art exp ack blog mysql分区 ima
原文地址:https://www.cnblogs.com/kate7/p/13384636.html