1.下列表结构,利用SQL语句在mydb数据库中创建topic表。
create table topic(
id int comment '专题编号',
title varchar(255)comment '专题名称',
intro varchar(255)comment '专题介绍',
start_time int comment '专题开始时间',
end_time int comment '专题结束时间'
);
2.为mydb.goods表新增total(库存量)和add_time(发布时间)字段。
create table goods(
id int comment '编号',
name varchar(32) comment '商品名',
price int comment '价格',
description varchar(255) comment '商品描述'
);
alter table goods add total int comment '库存量'