drop_table.md 675 字节
Newer Older
M
Mars Liu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
# 删除表

Joe 想要删除数据库中的 good_category 表,他应该怎么操作? 

<hr/>

点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill){target="_blank"}。

* `show databases;` 列出所有数据库
* `show tables;` 列出所有表

## 答案

```mysql
drop table goods_category;
```

## 选项

### A

```mysql
delete table good_category;
```

### B

```mysql
delete table where name = 'good_category';
```

### C

```mysql
remove table good_category;
```

### D

```mysql
truncate table goods_category;
```

### E

```mysql
clean table goods_category;
```