第一题
输入密码登录mysql,创建数据库zoo,转换到zoo数据库,
mysql
mysql> create database zoo character set gbk;
mysql> use zoo

查看创建数据库zoo信息
mysql
mysql> show create database zoo;

删除数据库zoo
mysql
mysql> drop database zoo

第二题
先创建数据库db_system,接着创建两张表
mysql
create table user(
id int primary key auto_increment comment 'id',
NAME char(20) not null comment '姓名',
gender char(4) not null comment '性别',
birthday date comment '生日',
entry_date date not null comment '入职时间',
job char(30) not null comment '职位');

mysql
>create table salary(
->id int primary key auto increment comment'id',
->userld int not null comment'用户id',
->basesalary float not null comment'基本工资',
->month int not null comment'月份',
->allowances float not null default 0 comment'补贴');

第三题
alter的基本命令,add、modify、drop、rename、change...
1、
mysql
mysql>alter table user add image tinyblob

2、
mysql
mysql> alter table user modify job varchar(60);

3、
mysql
mysql> alter table user drop column gender;

4、
mysql
mysal> alter table salary rename usersalary

5、
mysql
mysql> alter table user convert to character set utf8.

6、
mysql
mysql> alter table user change column name username char(20) not null,
