## 1.查询索引
```
show keys from 表名;
show indexes from 表名;
```
## 2.索引的分类
1. 主键索引
2. 唯一索引
3. 全文索引
4. 普通索引
## 2.2创建唯一索引
```
create unique index 索引名称 on 表名(列名);
```
## 2.3全文索引
仅支持myisam类型表
创建表时添加
fulltext(字段)
## 2.4普通索引
```
create index 索引名称 on 表名(列);
```
## 3.explaini查询sql语句索引的使用
## 4.删除索引
```
alter table 表名 drop index/索引类型 索引名字
```