mysql索引 - mysql的普通索引使用问题
大家讲道理
大家讲道理 2017-04-17 15:56:58
0
3
688

mysql一般建表都会设置主键索引 然后对唯一性的字段设置唯一索引
但普通索引从来没用过 普通索引是在非唯一性 需要索引的地方用吗 有没有举例说明 是要对大多数的字段 都进行普通索引吗?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
巴扎黑

Creating an index depends on which fields you want to query. The primary key is indexed by default. For other fields, if you want to query, you also need to create an index. Of course, you don't need to create an index. The purpose of the index is to increase the query speed, but it will increase the size of the database. This is true not only for mysql, but also for other databases.

洪涛

If there is a field that is frequently queried, and it is not a primary key or an index, add a normal index to increase query efficiency!

伊谢尔伦

Generally, a normal index is added to the where condition. Various factors are also considered here

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!