mysql索引之使用函数操作索引列
使用函数操作索引列
explain select * from student where Sname='吴兰';
explain select * from student where left(Sname,4)='吴兰';
单独查询索引列时,type类型是ref

使用函数操作索引列时,type类型时index

本文来自博客园,作者:King-DA,转载请注明原文链接:https://www.cnblogs.com/qingmuchuanqi48/articles/16943009.html

浙公网安备 33010602011771号