目录
1.在mydb数据库下创建一个表格名字为stu_info,里面结构包含了学号和姓名的名称,字符型以及他的引擎为innodb 字符集为gbk 校队规则为gbk_chinese_ci
4.修改数据库表明mydb.stu_info为mydb.stu_information,并检验
5.将数据库表中结构的stu_num修改为stu_id,并检验
2.复制stu_info的数据库表结构名字为stu_info2,并检验
3.复制数据库stu_info的整体结构和数据名字为stu_info3,并检验
create table mydb.stu_info(
stu_num int comment '学号',
stu_name varchar(30) comment '姓名'
) engine =innodb character gbk collate gbk_chinese_ci;

show tables;

desc stu_info;

drop table stu_info;

drop table if exists stu_info;
show warnings;

alter table mydb.stu_info add gender char(1) comment '性别';
desc stu_info;

alter table mydb.stu_info modify gender enum ('m','f');
desc stu_info;

alter table mydb.stu_info drop gender;
desc stu_info;

alter table mydb.stu_info rename mydb.information;
show tables;

alter table mydb.stu_info change stu_num stu_id int comment '学号';
desc stu_info;

insert into stu_info values(1001,'李四');
select * from stu_info;

create table stu_info2 like stu_info;
show tables;
desc stu_info2;
select * from stu_info2;

create table stu_info3 select * from stu_info;
show tables;
desc stu_info3;
select * from stu_info3;
