实验二 数据库和表的创建与管理
创建用于企业管理的员工管理数据库,数据库名为YGGL中,YGGL数据库中包括三个表:Employees(员工信息表)、Departments(部门信息表)、Salary(员工薪水情况表)。各表的结构如下表:
表1 Employees表结构
列名 |
数据类型 |
长度 |
是否允许为空 |
说明 |
EmployeeID |
char |
6 |
not null |
员工编号,主键 |
Name |
char |
10 |
not null |
姓名 |
Education |
char |
4 |
not null |
学历 |
Birthday |
date |
|
not null |
出生日期 |
Sex |
char |
2 |
not null |
性别 |