Home >Backend Development >PHP Tutorial >mysql 优化 查询索引问题

mysql 优化 查询索引问题

WBOY
WBOYOriginal
2016-06-20 12:33:41915browse

每个表都自增主键索引ID和建立的索引USERID

在优化时,那么其他经常查询的字段,是否还有必要建立索引?

还是使用关联ID或USERID查询就可以了?


回复讨论(解决方案)

听从 EXPLAIN 的建议

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn