日期:2014-05-16 浏览次数:21001 次
mysql> create table x (
-> id int primary key,
-> c int
-> ) engine=myisam;
Query OK, 0 rows affected (0.10 sec)
mysql> alter table x
-> PARTITION BY HASH(id)
-> PARTITIONS 2;
Query OK, 0 rows affected (0.15 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql>
------解决方案--------------------
33为表名加引号。
alter table tb
partition by hash(id)
partitions 2;
------解决方案--------------------
33表名加''
alter table tb
partition by hash(id)
partitions 2;