mysql强制索引和禁止某个索引
mysql强制使用索引:force index(索引名或者主键PRI)
select * from table force index(PRI,idx1) limit 2;
mysql禁止某个索引:ignore index(索引名或者主键PRI)
select * from table ignore index(PRI,idx1) limit 2;
mysql强制使用索引:force index(索引名或者主键PRI)
select * from table force index(PRI,idx1) limit 2;
mysql禁止某个索引:ignore index(索引名或者主键PRI)
select * from table ignore index(PRI,idx1) limit 2;