当前位置:网站首页>Index in MySQL show index from XXX the meaning of each parameter
Index in MySQL show index from XXX the meaning of each parameter
2022-06-12 11:29:00 【weixin_ forty-six million eight hundred and fifty-five thousand】
- Introduce mysql in index( Index the meaning of each parameter )
- sentence
show index from tb_user
The corresponding result 
3. Let's explain the meaning of each parameter of the index in this table
1.Table: Table name
2.Non_unique: If the index cannot contain duplicate values, then 0, If yes, it is 1. That's what we usually call the only index .
3.Key_name The index name , If the name is the same, it indicates that it is the same index , Instead of repeating , For example, the fourth 、 Five pieces of data , The index names are name, It's actually a joint index .
4.Seq_in_index Column sequence number in index , from 1 Start . Four in the above figure 、 Five pieces of data ,Seq_in_index One is 1 One is 2, Is to indicate the order in the joint index , We can infer the order of indexes in the joint index .
5.Column_name The column name of the index .
6.Collation This refers to how columns are stored in the index , It probably means character order .
7.Cardinality Cardinality means , An estimate of the number of unique values in an index . We know that the fewer duplicate values of a field, the more suitable for indexing , So we are generally based on Cardinality To determine whether the index is highly selective , If this value is very small , Then you need to re evaluate whether this field is suitable for indexing .
8.Sub_part Pre index means , If the column is only partially indexed , Is the number of characters indexed . If the entire column is indexed , Then for NULL.
9.Packed Indicates how keywords are compressed . If it's not compressed , Then for NULL. Compression generally includes compressed transmission protocol 、 Compressed column solution and compressed table solution .
10.Null If the column contains NULL, It contains YES.
11.Index_type Represents the index type ,Mysql At present, there are mainly the following index types :FULLTEXT,HASH,BTREE,RTREE.
12.Comment Index_comment The meaning of the note .
Sum up , This article mainly discusses MySQL SHOW INDEX Use of commands , It is recommended that you run the code below in person .
边栏推荐
- Module 8 job
- Golang基础(6)
- mysql中的索引show index from XXX每个参数的意义
- Verifiability and scarcity of NFT Digital Collections
- manuscript手稿格式准备
- arm交叉编译链下载地址
- AcWing 1995. Meet and greet (simulation)
- Summary of rosbridge use cases_ Chapter 26 opening multiple rosbridge service listening ports on the same server
- SOT23(Small Outline Transistor)
- selenium使用代理IP
猜你喜欢

【clickhouse专栏】基础数据类型说明

^33变量提升和函数提升面试题

你需要社交媒体二维码的21个理由

InfoQ geek media's 15th anniversary solicitation |position:fixed virtual button cannot take effect after being triggered. Problem analysis and Solution Exploration

DS18B20 digital thermometer (I) electrical characteristics, parasitic power supply mode and remote wiring

^34作用域面试题

套接字编程Udp篇

C# 35. 选择默认网卡

Socket programming UDP

模块8作业
随机推荐
重量级代理缓存服务器Squid
Distributed storage exploration
自然语言处理nlp 数据集下载地址
AcWing 131. The largest rectangle in the histogram (monotone stack classic application template)
Network topology
DS18B20数字温度计 (一) 电气特性, 寄生供电模式和远距离接线
Record the pits encountered when using JPA
DS18B20数字温度计 (一) 电气特性, 供电和接线方式
Module 8 job
Golang Foundation (6)
^34 scope interview questions
Clickhouse column basic data type description
【CF1392D】D. Omkar and Bed Wars(环形与后效性dp)
Construction and construction of meta Universe System
VirtualBox virtual machine shut down due to abnormal system. The virtual machine startup item is missing
Golang基础(6)
890. find and replace mode
人类想要拥有金钱、权力、美丽、永生、幸福……但海龟只想做一只海龟
信号继电器RXSF1-RK271018DC110V
程序分析与优化 - 6 循环优化