提交 7fc2d5cf 编写于 作者: M Mars Liu

add drop table

上级 bc71c758
......@@ -4,10 +4,15 @@
"children": [],
"export": [
"create_table.json",
"auto_increment.json"
"auto_increment.json",
"drop_table.json"
],
"keywords_must": [
["mysql", "创建", "表"]
[
"mysql",
"创建",
"表"
]
],
"keywords_forbid": [],
"group": 1
......
{
"type": "code_options",
"author": "ccat",
"source": "drop_table.md",
"notebook_enable": false,
"exercise_id": "c4e2ce3e42c5454a8d6c520d4a818497"
}
\ No newline at end of file
# 删除表
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;
```
......@@ -140,7 +140,7 @@
}
},
{
"表": {
"创建和删除表": {
"node_id": "mysql-426b0b1e04a4462e984ee77ca536f916",
"keywords": [],
"children": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册