talk

oracle 中查找不连续的数的最前一个值

select  min(max(content_code))+ 1 sr_no
from
(select t.content_code,
        t.content_code - row_number() over(order by content_code) diff
  from epp_t_content t
  where content_code between 12290 and 12299)
group by diff;

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-07-17
  • 2021-11-30
  • 2022-12-23
  • 2021-10-08
  • 2021-09-30
  • 2022-12-23
猜你喜欢
  • 2021-06-28
  • 2022-01-09
  • 2021-07-25
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案