mysql強制指定索引查詢
語法:
select * from table_name force index (index_name) where conditions;
使用 關鍵字 force
#########mysql強制使用指定索引查詢 SELECT * FROM `yrd_pay_flow` FORCE INDEX(`idx_trxn_date`) WHERE trxn_date > '2017-08-12 59:59:59' AND trxn_date < '2016-06-23 00:00:00';