当前位置:网站首页>How to view the index information of MySQL tables?
How to view the index information of MySQL tables?
2022-06-27 18:36:00 【Ink Sky Wheel】
show index from your_tablename;
Table: The name of the table where the index is located ;
Non_unique:0 Indicates that the index is unique ,1 Indicates that the index is not unique ;
Key_name: Name of index ;
Seq_in_index: The position of the index column in the index , For composite indexes , This field is important , You can see 《MySQL Index in 》;
Column_name: The name of the index column ;
Collation: How the values of index columns are stored in the index .A Indicates that there is a sort ,B+ The tree index uses this method ;NULL Indicates disordered ,Heap The index uses this method ;
Cardinality: The number of all values in the index column after de duplication . The closer the value is divided by the number of rows in the table 1 The better , If it's very small , You need to consider whether you can delete the index ;
Sub_part: The number N Indicates that only the first... Of the column N Characters to index ;NULL Represents the value of the entire index column ;
Packed: Is the keyword compressed ,NULL No compression ;
Null: Whether the index column can be empty
Index_type: Index type ,BTREE Express B+ Tree index ;
Comment: notes ;
Index_comment: notes ;
边栏推荐
- Project team management - Tuckman ladder theory
- Explain the distributed computing of Apache skywalking OAP in detail
- TP5 generates the most detailed two-dimensional code tp6 (also available)
- Three methods to quickly open CMD in a specified folder or place
- Performance problems caused by redis cache invalidation and competitive loading
- Teach you how to realize pynq-z2 bar code recognition
- MySQL中的行转列和列转行
- How to write a resume?
- Why migrate from opentsdb to tdengine
- Asemi rectifier bridge kbp310 function pin diagram
猜你喜欢
国产数据库认证考试指南汇总(2022年6月16日更新)
How much room does Migu video have for development without relying on sports events?
The power of code refactoring: how to measure the success of refactoring
Teach you to use elastic search: run the first hello world search command
WOx WPM installing the Youdao plug-in
Allocate aligned heap space
Oracle TRUNC function processing date format
TDengine 连接器上线 Google Data Studio 应用商店
国内首家!EMQ加入亚马逊云科技“初创加速-全球合作伙伴网络计划”
Overview of Inspur Yunxi database executor
随机推荐
Computing trends in three times of machine learning
Synchronization mechanism of dual namenodes
【协会通知】关于举办人工智能与物联网领域暑假专题师资培训的通知
Seata server database connection user and service database undo_ What permissions do log users need?
About binary
Wanzhou gold industry: what are the common gold investment and warehouse building modes?
Sword finger offer 22 The penultimate node in the linked list
Three methods to quickly open CMD in a specified folder or place
PostgreSQL之存储过程篇
SQL update批量更新
(5) SPI application design and simulation verification 2 - design code implementation
Oracle TRUNC function processing date format
Analysis of shardingsphere core source code
国内首家!EMQ加入亚马逊云科技“初创加速-全球合作伙伴网络计划”
leetcode 92. Reverse linked list II
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
MySQL中的行转列和列转行
国产数据库认证考试指南汇总(2022年6月16日更新)
广汽三菱全新欧蓝德首次国内亮相于年内上市 产品力全面焕新
[UVM foundation] build of UVM_ Phase execution sequence