数据库 Departments,Salary,Employess三个表的数据;

本文介绍了数据库中的三个关键表——Departments, Salary和Employees,详细阐述了它们的数据结构和可能的关系,为理解组织架构和员工薪酬分析提供基础数据。" 118610335,2391601,项目质量管理计划详解,"['项目管理', '质量管理', '文档规范']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

数据库 Departments,Salary,Employess三个表的数据;

select * from Departments;
select * from Salary;
select * from Employess;
drop table Salary;
drop table Departments;
---创建表
CREATE TABLE Employess(
EmployeeID  CHAR(6) NOT NULL PRIMARY KEY,
Name  char(8) NOT NULL,
Sex Number(1) NOT NULL,
Birthday  date NOT NULL,
Address  char(20)  NULL,
Zip  char(6)  NULL,
PhoneNumber  char(12) NULL,
DepartmentID char(3) not null,
constraint fk_Employess foreign key (DepartmentID) references Departments(DepartmentID) );

---修改表Employess中Name项
alter table Employess
    modify(Name char(10));

create table Departments(
DepartmentID char(3) not null primary key,
DepartmentName char(20) not null,
Note varchar2(100) null
);

create table Salary(
EmployeeID char(6) not null primary key,
InCome number(8,2) not null
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值