MySql查看索引以及各字段含义

查看表的索引:

show index from userInfo(表名)

 

show index from 数据库名.表名 

 

 

查看某表某一列上的索引使用下面的SQL语句:

show index from 数据库名.表名 where column_name like '列名'
例如:
show index from userInfo where column_name like 'UUID'

 

查出来的数据(只列出几个重要的:)

Table:          表的名称

Non_unique:     是否唯一,0是,1否

Key_name:	索引名称

Column_name:	对应列名称

  

参考:https://blog.csdn.net/superdangbo/article/details/79283752

 

posted @ 2021-02-05 23:14  云村的王子  阅读(1019)  评论(0编辑  收藏  举报