Auto commit

This commit is contained in:
2025-03-26 08:47:15 +08:00
parent eaa1811ce7
commit ba7a5971be
2 changed files with 41 additions and 0 deletions
+5
View File
@@ -115,6 +115,11 @@ INSERT INTO employee (emp_name, salary, hire_date, dept_id, job_id) VALUES
创建一个存储函数 `calculate_annual_salary`,接受员工的月薪作为参数,返回其年薪(假设年薪为月薪的 12 倍)。
```c
```
#### 练习题 2: 计算员工工龄
创建一个存储函数 `calculate_years_of_service`,接受员工的入职日期作为参数,返回该员工的工龄(以年为单位)。