时间:2021-07-01 10:21:17 帮助过:7人阅读
2、mysql禁止某个索引:ignore index(索引名或者主键PRI)
例如:
select * from table ignore index(PRI) limit 2;(禁止使用主键) select * from table ignore index(ziduan1_index) limit 2;(禁止使用索引"ziduan1_index") select * from table ignore index(PRI,ziduan1_index) limit 2;(禁止使用索引"PRI,ziduan1_index")
mysql 强制索引和禁止某个索引
标签:mysq force zid mit bsp limit ble index select