Oracle 练习

1. 题目

找出 25 年前雇的员工

2. 实例

点我看答案
select *
from emp e
where (sysdate - e.hiredate) / 12 / 30 > 25;

select *
from emp e
where months_between(sysdate, e.hiredate) / 12 >25;

select *
from emp e
where add_months(sysdate, -25*12) >= e.hiredate;
© 2022 刘士. All rights reserved.

结果匹配 ""

    没有匹配的结果 ""