1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

use ref not range for ... WHERE key IN (val)

This commit is contained in:
serg@sergbook.mysql.com
2004-06-21 19:42:00 +03:00
parent 3b34ea8cd0
commit e2a3ca8637
2 changed files with 4 additions and 2 deletions

View File

@@ -255,7 +255,7 @@ t1 ref y y 5 const 1 Using where
t2 range x x 5 NULL 2 Using where
explain select count(*) from t1 where x in (1);
table type possible_keys key key_len ref rows Extra
t1 range x x 5 NULL 1 Using where; Using index
t1 ref x x 5 const 1 Using where; Using index
explain select count(*) from t1 where x in (1,2);
table type possible_keys key key_len ref rows Extra
t1 range x x 5 NULL 2 Using where; Using index