1
create table t1 (a int primary key, b int, index bindex(b));
2
insert into t1 values (1,2),(2,2),(3,NULL),(4,NULL);
3
explain select * from t1 force index (bindex) where b is NULL;
4
id select_type table type possible_keys key key_len ref rows Extra
5
1 SIMPLE t1 ref bindex bindex 5 const 10 Using where
6
select * from t1 force index (bindex) where b is NULL;