# 创建表 Joe 想要在 goods 数据库创建一个 goods_category 表,管理商品的类别,那么正确的建表语句应该是:
点击进入[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;` 列出所有表 ## 答案 ```sql CREATE TABLE goods_category ( id INT PRIMARY KEY , category VARCHAR(30), remark VARCHAR(100) ); ``` ## 选项 ### A ```sql MAKE TABLE goods_category ( id INT PRIMARY KEY , category VARCHAR(30), remark VARCHAR(100) ); ``` ### B ```sql DROP TABLE goods_category ( id INT PRIMARY KEY, category VARCHAR(30), remark VARCHAR(100) ); ``` ### C ```sql SAVE TABLE goods_category ( id INT PRIMARY KEY, category VARCHAR(30), remark VARCHAR(100) ); ``` ### D ```sql ADD TABLE goods_category ( id INT PRIMARY KEY, category VARCHAR(30), remark VARCHAR(100) ); ``` ### E ```sql PUT TABLE goods_category ( id INT PRIMARY KEY, category VARCHAR(30), remark VARCHAR(100) ); ```