# 创建表
Joe 想要在 goods 数据库创建一个 goods_category 表,管理商品的类别,那么正确的建表语句应该是:
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill)。
* `show databases` 列出所有数据库
* `show tables` 列出所有表
## 答案
```mysql
CREATE TABLE goods_category
(
id INT PRIMARY KEY ,
category VARCHAR(30),
remark VARCHAR(100)
);
```
## 选项
### A
```mysql
MAKE TABLE goods_category
(
id INT PRIMARY KEY ,
category VARCHAR(30),
remark VARCHAR(100)
);
```
### B
```mysql
DROP TABLE goods_category
(
id INT PRIMARY KEY,
category VARCHAR(30),
remark VARCHAR(100)
);
```
### C
```mysql
SAVE TABLE goods_category
(
id INT PRIMARY KEY,
category VARCHAR(30),
remark VARCHAR(100)
);
```
### D
```mysql
ADD TABLE goods_category
(
id INT PRIMARY KEY,
category VARCHAR(30),
remark VARCHAR(100)
);
```
### E
```mysql
PUT TABLE goods_category
(
id INT PRIMARY KEY,
category VARCHAR(30),
remark VARCHAR(100)
);
```