1
create table t1 (a int primary key, b varchar(100) unique);
2
insert into t1 values (2,"Beaker"),(3,"Cricket"), (1,"Shirty");
4
EXPLAIN SELECT * FROM t1;
7
EXPLAIN SELECT a FROM t1 FORCE INDEX (PRIMARY) WHERE b="Beaker";
8
SELECT a FROM t1 FORCE INDEX (PRIMARY) WHERE b="Beaker";