oracle表中如何查询入职时间最早的员工?

2025-03-27 05:29:43
推荐回答(2个)
回答1:

SELECT * FROM 表名 ORDER BY 入职时间 ASC

回答2:

select c.* from (
select rownum rn,b.* from (select e.* from emp e order by e.hiredate asc) b) c where c.rn=1;