Mysql mysql sql_no_cache

    今天想测试下 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%'

  

     

   

你可能感兴趣的:(mysql)