查看表的索引:

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

 

相关文章:

  • 2021-04-30
  • 2021-07-13
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2021-08-13
  • 2021-10-12
  • 2021-09-13
猜你喜欢
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-12-26
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案