mysql如何查看表的索引

2025年01月25日 MYSQL Python51

具体方法:

(相关教程推荐:mysql数据库学习教程)

查看唯一索引:

show index from mytable;//mytable 是表名

查询到唯一索引后,如何删除唯一索引呢,可以使用如下命令:

alter table mytable drop index mdl_tag_use_ix;//mdl_tag_use_ix是索引名

本文链接:http://so.lmcjl.com/news/22023/

展开阅读全文