RANGE表分区 CREATE TABLE `tbUser` ( `iUin` bigint(20) NOT NULL, `iLevel` int(4) NOT NULL, PRIMARY KEY (`iUin`) ) ENGINE=InnoDB DEFAULT CHARSET=gbk COMMENT='用户表' PARTITION BY RANGE (MOD(iUin,10))( PARTITION p1 VALUES LESS THAN(1), PARTITION p2 VALUES LESS THAN(2), PARTITION p3 VALUES LESS THAN(3), PARTITION p4 VALUES LESS THAN(4), PARTITION p5 VALUES LESS THAN(5), PARTITION p6 VALUES LESS THAN(6), PARTITION p7 VALUES LESS THAN(7), PARTITION p8 VALUES LESS THAN(8), PARTITION p9 VALUES LESS THAN(9), PARTITION p9 VALUES LESS THAN(10) list分区(离散) partition by list(iLevel) ( partition p1 values in (1,2,3,4), partition p2 values in (5,6,7,8), partition p3 values in (9,10,11) ); hash分区 partition by hash(iUin) partitions 10; key分区 partition by linear key(iUin) partitions 10;