Skip to content

Commit c98ea04

Browse files
committed
docs:mysql复合索引,匹配联合索引漏了一个案例
1 parent 97753c9 commit c98ea04

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)