Mysql Index Type

Q:The kind of mysql index

1.Primary Key
2.Unique index
3.Normal index
4.Fulltext index
5.Clustered index
    Every InnoDB table has a special index called the clustered index where the data for the rows is stored. 
    When you define a PRIMARY KEY on your table, InnoDB uses it as the clustered index. 
6.Secondary index
    All indexes other than the clustered index are known as secondary indexes.

Q:The implement method of the index

1. B-Tree(平衡多路搜索树)
    B-Treey优点:
    * 磁盘磁头读写移动次数少,与比较二叉树,深度较低,叶子节点存储数据,
2. R-Tree(Rectangle['rɛktæŋɡl]  Tree)
3. HASH(main menmory)
4. FULLTEXT(全文索引)

Reference

How MySQL Uses Indexes
Clustered and Secondary Indexes

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容