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

原文地址:https://www.cnblogs.com/qq1445496485/p/14380164.html