怎么给字符串字段加索引? 前缀索引:定义字符串的一部分作为索引。 ALTER TABLE table add index index1(email); # 创建的index1索引里面,包含每个记录的整个字符串 ALTER TABLE table add index index2(email(6)