We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
加索引的列设置为 NOT NULL ,否则将导致引擎放弃使用索引而进行全表扫描 经过试验把某一列设置为default null,where是可以走索引
加索引的列设置为 NOT NULL ,否则将导致引擎放弃使用索引而进行全表扫描
The text was updated successfully, but these errors were encountered:
先说结论,你是对的,确实会走索引,文章中描述是有问题的。 另外 index 是否设置 NULL 是不影响性能的
index
NULL
And, in case you’re wondering, allowing NULL values in the index really doesn’t impact performance 来源:高性能MySQL第四章
NULL 值的索引查找流程参考:https://juejin.im/post/5d5defc2518825591523a1db
Sorry, something went wrong.
No branches or pull requests
加索引的列设置为 NOT NULL ,否则将导致引擎放弃使用索引而进行全表扫描
经过试验把某一列设置为default null,where是可以走索引
The text was updated successfully, but these errors were encountered: