create database db2 default charset utf8 collate utf8_general_ci;
mysql> use db2;
create table depart(
id int not null auto_increment primary key,
title varchar(16) not null
)default charset=utf8;
create table info(
id int not null auto_increment primary key,
name varchar(16) not null,
email varchar(32) not null,
age int,
depart_id int
)default charset=utf8;
insert into depart(title) values("开发"),("运营"),("销售");
insert into info(name,email,age,depart_id) values("mufeng","598779784@qq.com",19,1);
insert into info(name,email,age,depart_id) values("gini","gini@live.com",49,1);
insert into info(name,email,age,depart_id) values("deepwind","deepwind@live.com",9,2);
insert into info(name,email,age,depart_id) values("tony","tony@live.com",29,1);
insert into info(name,email,age,depart_id) values("kelly","kelly@live.com",99,3);
insert into info(name,email,age,depart_id) values("james","james@live.com",49,1);
insert into info(name,email,age,depart_id) values("gailun","gailun@live.com",49,1);