使用条件:
create table blog(
...
primary key(id,userid)
)
partition by hash(userid) partitions 3 ;
3个分区
explain select * from blog;