drop database literatureDB; create database literatureDB; use literatureDB; # 类型表 create table `type` ( t_id int primary key auto_increment, t_name varchar(20) comment'类型名称' ); # 创建存储的表 create table literature ( id int primary key auto_increment, t_id int, content varchar(1000), foreign key(t_id) references `type`(`t_id`) );