Home > Database > Mysql Tutorial > body text

mysql中如何查看和删除唯一索引_MySQL

WBOY
Release: 2016-06-01 13:06:19
Original
946 people have browsed it

mysql中如何查看和删除唯一索引。

查看唯一索引:

show index from mytable;//mytable 是表名 

查询结果如下:

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

alter table mytable drop index mdl_tag_use_ix;//mdl_tag_use_ix是上表查出的索引名,key_name


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template