> For the complete documentation index, see [llms.txt](https://bohans.gitbook.io/ji-chu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bohans.gitbook.io/ji-chu/mysql/sql-you-hua/suo-yin/hash-suo-yin.md).

# HASH 索引

Hash 索引相对简单，只有 Memory/Heap 引擎支持 Hash 索引。

* Hash 索引适用于 Key-Value 查询，通过 Hash 索引要比通过 B-Tree 索引查询更迅速；
* Hash 索引不适用范围查询，例如 <、>、<=、>= 这类操作。如果使用 Memory/Heap 引擎并且 where条件中不使用 “=” 进行索引列，那么不会用到索引。
