blob: 4aea81c1c49b643dfaedc5f4111b0bffde3ab144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--source include/have_innodb.inc
create table t(id int primary key, a int) engine=InnoDB;
insert into t (id, a) values (1, 1);
alter table t modify column id int auto_increment;
check table t;
insert into t (a) values (2);
alter table t modify column id int, algorithm=instant;
check table t;
insert into t (id, a) values (3, 3);
select * from t;
check table t;
drop table t;
|