Skip to content

Commit 0953c5e

Browse files
committed
更新了数据库部分的文档和代码
1 parent c6666f4 commit 0953c5e

10 files changed

+20
-5081
lines changed

Day36-40/code/HRS_create_and_init.sql

+4-24
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ insert into tb_emp values
5151
(3588, '朱九真', '会计', 5566, 2500, null, 10);
5252

5353

54-
-- 查询薪资最高的员工姓名和工资
54+
-- 查询月薪最高的员工姓名和工资
5555

56-
-- 查询员工的姓名和年薪((月薪+补贴)*12)
56+
-- 查询员工的姓名和年薪((月薪+补贴)*13)
5757

5858
-- 查询有员工的部门的编号和人数
5959

6060
-- 查询所有部门的名称和人数
6161

62-
-- 查询薪资最高的员工(Boss除外)的姓名和工资
62+
-- 查询月薪最高的员工(Boss除外)的姓名和工资
6363

6464
-- 查询薪水超过平均薪水的员工的姓名和工资
6565

@@ -69,24 +69,4 @@ insert into tb_emp values
6969

7070
-- 查询主管的姓名和职位
7171

72-
-- 查询薪资排名4~6名的员工姓名和工资
73-
74-
-- use hrs;
75-
76-
-- drop procedure if exists sp_avg_sal_by_dept;
77-
78-
79-
-- create procedure sp_avg_sal_by_dept(dno integer, out avg_sal float)
80-
-- begin
81-
-- select avg(sal) into avg_sal from tb_emp where dno=dno;
82-
-- end;
83-
84-
85-
86-
87-
-- call sp_avg_sal_by_dept(10, @avgSal);
88-
89-
-- select @avgSal;
90-
91-
92-
72+
-- 查询月薪排名4~6名的员工姓名和工资

Day36-40/code/bank_create_and_init.sql

-15
This file was deleted.

Day36-40/code/booksys_create_and_init.sql

-46
This file was deleted.
File renamed without changes.

Day36-40/code/fangtx_create.sql

-253
This file was deleted.

0 commit comments

Comments
 (0)