MySQL 创建库 创建表 对表进行的操作。
1.show databases; 查看已创建的数据库名。

2.创建一个表
create table students (id bigint,name varchar(20),email varchar(20),age int);

2

3.对表名的修改"TO"
rename table students to student;

4.查看表的创建细节
show create table

5.修改字符集 恢复字符集
alter table student charset gbk;
alter table student charset utf8;;

6.修改表的列名
alter table student change 表的原列名 表修改的列名 varchar(20);

7.删除表
desc 将要删除的表名;
