Mysql show index解释
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Mysql show index解释,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1364字,纯文字阅读大概需要2分钟。
内容图文
![Mysql show index解释](/upload/InfoBanner/zyjiaocheng/1137/0499ab4734c64428b1b63d13b67bb517.jpg)
查看表上的索引状态:
SHOW INDEX
returns table index information.
SHOW KEYS
and SHOW INDEXES
are synonyms for SHOW INDEX
.
语法:
show {index|indexes} from table_name [ from db_name ] [where expr]
The following fields are returned by SHOW INDEX
.
Field | Description |
---|---|
Table
|
Table name |
Non_unique
|
1 if the index permits duplicate values, 0 if values must be unique. |
Key_name
|
Index name. The primary key is always named PRIMARY . |
Seq_in_index
|
The column's sequence in the index, beginning with 1 . |
Column_name
|
Column name. |
Collation
|
Either A , if the column is sorted in ascending order in the index, or NULL if it's not sorted. |
Cardinality
|
Estimated number of unique values in the index. The cardinality statistics are calculated at various times, and can help the optimizer make improved decisions. |
Sub_part
|
NULL if the entire column is included in the index, or the number of included characters if not. |
Packed
|
NULL if the index is not packed, otherwise how the index is packed. |
Null
|
NULL if NULL values are permitted in the column, an empty string if NULL 's are not permitted. |
Index_type
|
The index type, which can be BTREE , FULLTEXT , HASH or RTREE . See Storage Engine Index Types. |
Comment
|
Other information, such as whether the index is disabled. |
Index_comment
|
Contents of the COMMENT attribute when the index was created. |
原文:http://blog.51cto.com/wangergui/2074486
内容总结
以上是互联网集市为您收集整理的Mysql show index解释全部内容,希望文章能够帮你解决Mysql show index解释所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。