端午有人休息,有人忙

 

操作前数据:

从排序后的结果集中删除 前n条记录
--从排序后的结果集中删除 前n条记录
delete from emp
 where empno in (select empno
                   from (select *
                           from emp
                          where comm is not null
                            and rownum < &n
                          order by hiredate desc))

--4 行被删除,耗时 0.015 秒

 

操作后数据

从排序后的结果集中删除 前n条记录

以此记录

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-08-10
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2021-10-11
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案