1.修正优化器扫描行数统计信息。
analyze table t 命令,可以用来重新统计索引信息。
2.使用 force index
语法:select * from t force index(a) where a between 10000 and 20000;
1.修正优化器扫描行数统计信息。
analyze table t 命令,可以用来重新统计索引信息。
2.使用 force index
语法:select * from t force index(a) where a between 10000 and 20000;