Skip to content

Commit 9d2ddf1

Browse files
authored
Merge pull request #205 from XiaoK29/dev
docs:mysql复合索引,匹配联合索引漏了一个案例
2 parents 97753c9 + c98ea04 commit 9d2ddf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mysql/index/index_interview.md

+1
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ CREATE INDEX index_product_no_name ON product(product_no, name);
278278
- where a=1.
279279
- where a=1 and b=2 and c=3.
280280
- where a=1 and b=2.
281+
- where a=1 and c=3.
281282

282283
需要注意的是,因为有查询优化器,所以 a 字段在 where 子句的顺序并不重要。
283284

0 commit comments

Comments
 (0)