Skip to content

Commit 4066cbb

Browse files
committed
错别字:图解MySQL-锁篇-update没加索引会锁全表-总结
1 parent b1b35c7 commit 4066cbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mysql/lock/update_index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ delete 语句必须满足以下条件能执行成功:
101101

102102
我们可以打开 MySQL sql_safe_updates 参数,这样可以预防 update 操作时 where 条件没有带上索引列。
103103

104-
如果发现即使在 where 条件中带上了列索引列,优化器走的还是全标扫描,这时我们就要使用 `force index([index_name])` 可以告诉优化器使用哪个索引。
104+
如果发现即使在 where 条件中带上了列索引列,优化器走的还是全表扫描,这时我们就要使用 `force index([index_name])` 可以告诉优化器使用哪个索引。
105105

106106
这次就说到这啦,下次要小心点,别再被老板挨骂啦。
107107

0 commit comments

Comments
 (0)