《数据库系统原理》教学上机实验报告
实验题目:
实验一 创建数据库与表
实验目的和要求:
- 了解 mysql 数据库的存储引擎分类;
- 了解表的结构特点;
- 了解 mysql 的基本数据类型;
- 了解空值概念;
- 学会使用 sql 语句创建数据库和表。
实验过程:
1.实验题目
创建用于企业管理的员工数据库,数据库名为 yggl,包含员工信息,部门信
息及员工薪水信息。数据库 yggl 包含 3 个表:
- Employees: 员工信息表;
- Departments: 部门信息表;
- Salary: 员工薪水情况表。
2.创建语句如下:
(1)创建数据库
create database yggl;
use yggl;
(2)创建表 departments