摘要: 今天想测试下 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%' 阅读全文
posted @ 2012-04-24 10:07 ﹏Sakura 阅读(2664) 评论(0) 推荐(0) 编辑