日期:2014-05-16  浏览次数:20568 次

查询mysql数据库时,强制使用指定的索引

数据库明明加了索引,但是综合查询的时候后 explain 分析下语句 索引没有起作用,只好强制加索引了。

?

select * from table_name force index (index_name) where conditions;