今天想测试下 like 'string%' 和 left() 的效率问题 想到了公司DBA大哥曾经用过的mysql 函数

     sql_no_cache

     顺便说下测试结果。。因为目前mysql 是不支持函数索引的 所以 2是完胜的

    1、select sql_no_cache  * from test where left( goods_title, 11 ) = 'metersbonwe'

    2、select sql_no_cache   * from test where goods_title like 'metersbonwe%'

  

     

   

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2021-12-04
  • 2021-04-27
  • 2021-11-28
  • 2021-11-21
  • 2021-10-25
  • 2021-08-18
猜你喜欢
  • 2021-11-26
  • 2021-08-03
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案