mysql bug:
version :windows下的5.7.17-log和linux下的5.7.17-0ubuntu0.16.04.2
步骤如下:
1:row
.
.
.
table_rows:1
.
.
.
2:row
.
.
.
table_rows:2
.
.
.
4.执行如下修改表语句来添加分区:
version :windows下的5.7.17-log和linux下的5.7.17-0ubuntu0.16.04.2
步骤如下:
1.使用如下语句创建表:
create table t(
id int)engine=innodb
partition by range(id)(
partition p0 values less than (10),
partition p1 values less than (20));
2.然后使用如下语句插入数据:
insert into t select 9;
insert into t select 10;
insert into t select 15;
3.执行如下的查询语句:
select *from information_schema.partitions where table_schema=database() and table_name='t'\G
显示的结果是:
1:row
.
.
.
table_rows:1
.
.
.
2:row
.
.
.
table_rows:2
.
.
.
4.执行如下修改表语句来添加分区:
alter