创建分区

创建分区之range分区

创建分区之list分区

使用条件: 

创建分区之hash分区

create table blog(

  ...

  primary key(id,userid)

)

partition by hash(userid) partitions 3 ; 

3个分区

explain select * from blog;

创建分区之key分区

原文地址:https://www.cnblogs.com/chenliuxiao/p/9322220.html