输入banner图图片脚本导航/分类

高性能mysql 第5章 创建高可用的索引

index idx_t_test_c_char1 on t_test(c_char(3)); create index idx_t_test_c_char1 on t_test(c_char(3));
  • explain select * from t_test t where t.c_char = ‘12455‘
  •  

    结果:

    技术分享

    使用了索引。

    前缀索引的缺陷:因为只存储了前缀,所以无法作为数据来操作,如order by和group by的部分,无法使用这个索引来优化。

    高性能mysql 第5章 创建高可用的索引

    标签:中间   search   family   soft   引擎   hash   logs   应该   font