编辑代码

CREATE DATABASE db_shopping;
use db_shopping;
CREATE table Department(
    id int auto_increment primary key not null comment'部门编号',
    dept_name varchar(20) not null comment'部门名称',
    dept_phone char(13) null comment'部门电话',
    DeptFunc varchar(100) null comment'部门职能'
)

select tables;