Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL索引失效关于OR的描述问题 #297

Open
qy-liuhuo opened this issue Dec 3, 2024 · 0 comments · May be fixed by #298
Open

MySQL索引失效关于OR的描述问题 #297

qy-liuhuo opened this issue Dec 3, 2024 · 0 comments · May be fixed by #298

Comments

@qy-liuhuo
Copy link
Contributor

图解MySQL-索引篇-索引失效有哪些-WHERE 子句中的 OR 中提到:

在 WHERE 子句中,如果在 OR 前的条件列是索引列,而在 OR 后的条件列不是索引列,那么索引会失效。

这部分存在歧义, OR 后面的字段是索引列,前面的不是索引列也会导致索引失效

qy-liuhuo added a commit to qy-liuhuo/CS-Base that referenced this issue Dec 3, 2024
@qy-liuhuo qy-liuhuo linked a pull request Dec 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant