From 36abb800e12649ce0627cb008cc2af52cce841ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E7=8E=89=E6=88=90?= <16253517+jade-successor@user.noreply.gitee.com> Date: Fri, 26 Sep 2025 13:14:14 +0000 Subject: [PATCH] update docs/sidebar/sanfene/mysql.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 毛玉成 <16253517+jade-successor@user.noreply.gitee.com> --- docs/sidebar/sanfene/mysql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sidebar/sanfene/mysql.md b/docs/sidebar/sanfene/mysql.md index 5be02d9f..9fb2d3cc 100644 --- a/docs/sidebar/sanfene/mysql.md +++ b/docs/sidebar/sanfene/mysql.md @@ -848,7 +848,7 @@ B+Tree 永远是在叶子节点拿到数据,所以 IO 次数是稳定的。 ### 40.覆盖索引了解吗? -在辅助索引里面,不管是单列索引还是联合索引,如果 select 的数据列只用辅助索引中就能够取得,不用去查主键索引,这时候使用的索引就叫做覆盖索引,避免了回表。 +覆盖索引指的是一个索引包含查询语句所需要的所有字段,使得数据库引擎只需扫描这个索引就能获得全部结果,而无须回表去查询数据行。他的核心优势就是“不需要回表” 比如,`select name from user where name = ‘张三’;` -- Gitee