MYSQL5.7 INDEXES之如何使用索引(一)
Most MySQL indexes ( PRIMARY KEY , UNIQUE , INDEX , and FULLTEXT ) are stored in B-trees . Exceptions: Indexes on spatial data types use R-trees; MEMORY tables also support hash indexes ; InnoDB uses inverted lists for FULLTEXT indexes B-Tree A tree data structure that is popular for use in database indexes. The structure is kept sorted at all times, enabling fast lookup for exact matches (equals operator) and ranges (for example, greater than, less than, and BETWEEN operators). This type of index is available for most storage engines, such as InnoDB and MyISAM . Because B-tree nodes can have