当前位置:网站首页>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 .
边栏推荐
- AcWing 135. Maximum subsequence sum (prefix sum + monotone queue to find the minimum value of fixed length interval)
- go基于腾讯云实现发送短信
- Unlimited growth, we will all go to the future | the 15th anniversary of the founding of InfoQ China
- Zabbix 监控之LLD
- Go sends SMS based on Tencent cloud
- Golang Foundation (7)
- 自然语言处理nlp 数据集下载地址
- ^33 variable promotion and function promotion interview questions
- Problems in cross validation code of 10% discount
- The reason why scanf return value is ignored and its solution
猜你喜欢

Relatively rare exception records in UI automation test

K58. Chapter 1 installing kubernetes V1.23 based on kubeadm -- cluster deployment
![[Blue Bridge Cup SCM 11th National race]](/img/da/3c8a9efd5b28f67816f239531a0339.png)
[Blue Bridge Cup SCM 11th National race]

Unity 连接 Microsoft SQLSERVER 数据库

Windows10 install mysql-8.0.28-winx64

^34 scope interview questions

M-Arch(番外12)GD32L233评测-CAU加解密(捉弄下小编)

十折交叉验证代码中的问题

mysql中的索引show index from XXX每个参数的意义

k58.第一章 基于kubeadm安装kubernetes v1.23 -- 集群部署
随机推荐
21 reasons why you need social media QR code
Differences among various cross compiling tools of arm
Redis keys in PHP
35. search insertion position
FormatConversionTool. exe
Humans want to have money, power, beauty, eternal life and happiness... But turtles only want to be a turtle
Thinking about the cooperation process of Network Library -- Some Thoughts on reading brpc
AcWing 1986. Mirror (simulation, ring diagram)
元宇宙链游与传统游戏的区别
Signal relay rxsf1-rk271018dc110v
mysql的悲观锁和乐观锁
Unlimited growth, we will all go to the future | the 15th anniversary of the founding of InfoQ China
AI - face
The difference between meta universe chain games and traditional games
CLJ3-100ALH30剩余电流继电器
人类想要拥有金钱、权力、美丽、永生、幸福……但海龟只想做一只海龟
M-Arch(番外12)GD32L233评测-CAU加解密(捉弄下小编)
B+ 树的简单认识
Redis summary
VirtualBox virtual machine shut down due to abnormal system. The virtual machine startup item is missing