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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM