Update MySQL.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
CyC2018
2026-10-23 04:39:20 +08:00
co-authored by Claude Fable 5
parent 24514f45a0
commit 25c3035321
+1 -1
View File
@@ -163,7 +163,7 @@ customer_id_selectivity: 0.0373
#### 4. 前缀索引
对于 BLOB、TEXT 和 VARCHAR 类型的列,必须使用前缀索引,只索引开始的部分字符。
对于 BLOB 和 TEXT 类型的列,必须使用前缀索引,只索引开始的部分字符;对于 VARCHAR 和 CHAR 类型的列,可以选择使用前缀索引来减小索引的大小。
前缀长度的选取需要根据索引选择性来确定。