Skip to content

Commit bca0422

Browse files
committed
Update mysql-high-performance-optimization-specification-recommendations.md
1 parent c2efa48 commit bca0422

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/database/mysql/mysql-high-performance-optimization-specification-recommendations.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,12 @@ Innodb 是按照主键索引的顺序来组织表的
252252

253253
隐式转换会导致索引失效如:
254254

255-
```
255+
```sql
256256
select name,phone from customer where id = '111';
257257
```
258258

259+
详细解读可以看:[MySQL中的隐式转换造成的索引失效](./index-invalidation-caused-by-implicit-conversion.md) 这篇文章。
260+
259261
### 3. 充分利用表上已经存在的索引
260262

261263
避免使用双%号的查询条件。如:`a like '%123%'`,(如果无前置%,只有后置%,是可以用到列上的索引的)

0 commit comments

Comments
 (0)