Files
MySQL-Study/数据库6.2.md
2025-11-14 13:25:36 +08:00

17 lines
331 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 一、查看索引
1. `show index from 表名`
2. `show keys from 表名`
3. `describe 表名`
4. `show create table 表名`
# 二、删除索引
语法:
```sql
DROP INDEX ON ;
```
# 三、修改索引
MySQL中没有直接提供修改索引的命令
1. 先删除原索引再创建同名索引
2.