1 --eval create
table t1(a
int not null, b
int, c
char(10), d varchar(20), primary key (a)) engine = innodb default charset=$charset
2 insert into t1 values (1,1,'ab','ab'),(2,2,'ac','ac'),(3,2,'ad','ad'),(4,4,'afe','afe');
6 insert into t1 values(8,9,'fff','fff');
10 insert into t1 values(10,10,'kkk','iii');
17 select * from t1 force
index(b) order by b;
18 explain select * from t1 force
index(b) order by b;
21 insert into t1 values(11,11,'aaa','mmm');
28 select * from t1 force
index(b) order by b;
29 select * from t1 force
index(c) order by c;
30 select * from t1 force
index(d) order by d;
31 explain select * from t1 force
index(b) order by b;
32 explain select * from t1 force
index(c) order by c;
33 explain select * from t1 force
index(d) order by d;