查询mysql数据库时,强制使用指定的索引
数据库明明加了索引,但是综合查询的时候后 explain 分析下语句 索引没有起作用,只好强制加索引了。
?
select * from table_name force index (index_name) where conditions;发布时间: 2012-08-09 15:59:21 作者: rapoo
查询mysql数据库时,强制使用指定的索引
数据库明明加了索引,但是综合查询的时候后 explain 分析下语句 索引没有起作用,只好强制加索引了。
?
select * from table_name force index (index_name) where conditions;