pc-boke

mysql强制使用指定索引查询

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\'; 

分类:

技术点:

相关文章:

  • 2021-09-24
  • 2022-02-09
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2021-12-03
  • 2022-02-09
  • 2022-12-23
  • 2022-02-20
相关资源
相似解决方案